PHP support includes:
Possibility to create PHP files and classes from templates.
Full PHP 5.6.x syntax support.
Partial support for PHP 7 return type hints.
Syntax and error highlighting.
includestatements and file references, including references to PHAR archives.
All the PHAR files from the current project and the specified include path are shown in the project tool window under the Project View/Libraries/PHAR node and available for browsing right there.
Intention actions and quick fixes
Surrounding with code constructs Ctrl+Alt+J and Ctrl+Alt+T.
Jump to declaration Ctrl+B.
PHP development support is provided through the PHP plugin. The plugin is not bundled with IntelliJ IDEA, but it can be installed from the JetBrains plugin repository as described in Managing plugins.
This part describes some procedures that are specific for developing PHP applications and some preliminary steps that are required to configure PHP development environment.
To develop an application using PHP
Follow these general steps:
Start creating a project from scratch. On the first page of the New Project wizard, choose PHP in the left-hand pane, then choose PHP Empty Project in the right-hand pane.
Create and configure the required data sources (see Managing data sources).
Populate the application using provided coding assistance.
Deploy the application.
Run the application. You can do it in several ways:
From IntelliJ IDEA using a PHP Script run configuration to view the application output in the Run tool window.
From IntelliJ IDEA, using a built-in Web server. This approach saves your time and effort because you do not need to deploy the application sources.
The following optional steps may be helpful:
Set up unit testing in your project.
Debug the application.