PHP code quality tools
In addition to built-in coding assistance, IntelliJ IDEA provides code style check through integration with the popular code quality tools:
These tools validate your code for consistency with a coding standard of your choice. You can appoint one of the predefined coding standards or use your own previously defined coding standard.
To use code quality tools from IntelliJ IDEA instead of command line, you need to register them in IntelliJ IDEA and configure them as IntelliJ IDEA code inspections. Once installed and enabled in IntelliJ IDEA, the tools can run both on-the-fly and in batch mode.
Install the PHP plugin
This functionality relies on the PHP plugin that should be installed and enabled in your IDE.
The plugin is available only in IntelliJ IDEA Ultimate.
Press Ctrl+Alt+S to open the IDE settings and select.
Switch to the Marketplace tab and use the search field to find the PHP plugin.
Click Install and restart the IDE if prompted.