There’s no shortage of IDE solutions for PHP developers out there. Beginners can usually get by with basic code editors, but the best practice is to pick an IDE to serve your developing needs over time.
It also helps if said IDE has extensive plugin support and a lively user community, along with a positive track record with community mavens and experts.
One of the most popular PHP-centric IDEs to live up to these demands is PhpStorm by JetBrains. Though if you ask JetBrains themselves, they will tell you it’s the most popular IDE for PHP developers in 2020, with 59% of all PHP developers choosing PhpStorm for their PHP development projects.
PhpStorm includes all you need to develop in PHP right out of the box. However, much like most other IDEs and code editors, PhpStorm can be customized and its functionality can be extended through the use of downloadable community plugins.
Since PhpStorm is a flavor of Intellij IDEA, many of our recommended plugins are compatible with other flavors of the IDE as well. That said, our chart of top plugins and extensions for PhpStorm includes the plugins essential to effective and productive use of PhpStorm specifically.
Top Essential Intellij PhpStorm Plugins
1.PHP Annotations
The PHP Annotations plugin analyses the classes that can be used as annotations, and provides code-completing when writing annotations.
2.Tabnine
We can’t help the shameless plug. But only because we, and a few hundred thousand other developers, really love TabNine and are still amazed by what it can it.
In case you still haven’t heard about TabNine, TabNine is a GPT-2, that’s Open.ai’s machine learning model, based autocomplete solution.
It provides superior code completions. Some say it knows what they’re thinking before they do. We say just give it a shot and install it on PhPStorm, or any other IDE for that matter.
3.PHP Toolbox
This essential plugin provides “Method References” and “Type Provider” extracted from the Symfony Plugin (see below). PHP Toolbox also improves some PhpStorm Core functionality and provides better auto-completion for several libraries like PHPUnit, Behat, Doctrine and Twig.
4.Symfony Support
One of the most popular PHP development frameworks is Symfony. When combined with the abovementioned plugins (PHP Toolbox and PHP Annotations), it enables advanced auto-complete capabilities for Symfony components.
5.PHPUnit Enhancement
PHPUnit Enhancement plugin provides smart autocomplete, code navigation and refactoring features for mock creation. Refactoring is handled in such a way that when you rename a method which is mocked, it is correctly renamed in the string in tests.
6.Php Inspections (EA Extended)
This plugin is an open-source Static Code Analyzer for PHP. Among inspections run, it can uncover architecture related issues, weak types control and possible code construct simplifications, performance issues, PHPUnit API usage and security issues.
Note that there is also a commercial version of this tool, called Php Inspections (EA Ultimate).
7.ignore
.ignore provides syntax highlighting and path auto-completion for .gitignore (and other ignore files). It also automatically grays out ignored files in the Project File Tree.
8.env files support
The IntelliJ IDEA .env files support plugin, compatible with PhpStorm, will provide syntax highlighting for the .env file in your PHP project.
9.Apache config (.htaccess)
As the name suggests, this plugin adds support for editing Apache config (.htaccess) files to your PhpStorm.
10.CSV Plugin
CSV Plugin is a lightweight plugin for editing CSV/TSV/PSV files with a flexible Table Editor, syntax validation, structure highlighting, customizable coloring, new intentions and helpful inspections. It’s compatible with all Intellij IDEs, including PhpStorm.
If you work with files of comma separated values, this plugin is a must-have.
11.Markdown Navigator Enhanced
Markdown language support for IntelliJ IDEs that offers all the features you need to write in markdown along your PHP code. This includes powerful pasting capabilities, drag and drop of images, refactoring and some autocompletion capabilities.
12.IdeaVim
If you’re a fan of the Vim editor using PhpStorm, worry not! Vim emulation plug-in for Intellij IDEs is the plugin you need. IdeaVim supports many Vim features including normal / insert / visual modes, motion keys, deletion / changing, marks, registers, some Ex commands, Vim regexps, configuration via ~/.ideavimrc, macros, window commands, and more.
13.Rainbow Brackets
One of the plugins you will probably see in any list of Intellij plugins ever – Rainbow Brackets – is as essential as it seems. Which is also why we at Codota sponsor its development.
As the name suggests, this handy plugin will add Rainbow Brackets / Rainbow Parentheses for IntelliJ based IDEs including PhpStorm.
14.Docker
Dockerized development is pretty standard nowadays, and it helps to have Docker integration right there in the IDE. For Intellij IDEs, including PhpStorm, there’s a dedicated plugin that provides integration with Docker.
It lets you download and build Docker images, create and run Docker containers from pulled images or directly from a Dockerfile, and more.
15.Database Navigator
Working with databases can get pretty tasking in CLI. So it helps to have a handy tool like the Database Navigator plugin to enable all the development and functionality features for a range of database types right in your PhpStorm IDE.
16.String Manipulation
Another plugin you are likely to see recommended quite often is the String Manipulation plugin. Among others, it features case switching, sorting, filtering, incrementing, aligning to columns, grepping, escaping, encoding and more.
17.GitToolBox
Especially useful if you work with large and complex Git repositories with multiple contributors is the GitToolBox plugin. It extends Git integration in Intellij IDEs (including PhpStorm) with additional features like status display, auto fetch, inline blame annotation, commit dialog completion, behind notifications and more.
It’s worth noting that new plugins are added all the time and old ones are retired as features are integrated into PhpStorm itself. So it’s not unlikely that we missed one (or more), leaving you plenty of room to add insights. Did we miss one? Maybe more? Let us know in the comments!
Top comments (5)
I love PHP Inspections, probably the best plugin out there for PHPStorm.
Here are my top 5 plugins for PHPStorm:
PHP Inspections (EA Extended)
Framework Support Plugin (Symfony)
Key Promoter X
PHPUnit Enhancement
JetBrains Toolbox App
I've made a video showing the possibilities of each plugin: youtu.be/h18-RtRqHZY
If you're serious about code documentation, you need a plugin that can keep up. Better Highlights plugin (plugins.jetbrains.com/plugin/12895...) is the answer - with comments to code link support and improved comments highlighting for various languages, it's a must-have for any JetBrains IDE user.
If the AI completion is as good as I hear, it would be the first thing I see that phpstorm has over vscode. Still not sure the pricing is worth it.
Tabnine if free! Our basic plan is full-featured, while the pro plan enables cloud servers. Check out our special Singles' Day promotion for a pro subscription tabnine.com/promotion/SinglesDay2020/
From the Github repo:
"There are no source files here because the backend is closed source."
It may be free as in gratis, but it's not free software and I think the distinction is important.