IntelliJ IDEA
 
Get IntelliJ IDEA
You are viewing the documentation for an earlier version of IntelliJ IDEA.

PHP

Last modified: 10 August 2022

PHP support includes:

  • Possibility to create PHP files and classes from templates.

  • Full PHP 5.3, PHP 5.4, PHP 5.5, PHP 5.6, PHP 7, PHP 7.1, PHP 7.2, PHP 7.3, PHP 7.4, PHP 8.0, and PHP 8.1 syntax support.

  • Syntax and error highlighting.

  • Basic on-the-fly code completion.

  • Resolution of include statements 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.

  • Class Completion

  • Intention actions and quick fixes

  • Surrounding with code constructs Ctrl+Alt+J and Ctrl+Alt+T.

  • Code inspections.

  • Jump to declaration Ctrl+B.

  • Refactoring:

PHP development support is provided through the PHP plugin. The PHP plugin is not bundled with IntelliJ IDEA, but it can be installed on the Settings/Preferences | Plugins page, tab Marketplace, as described in Installing plugins from JetBrains repository.

This part describes some procedures that are specific for developing PHP applications and some preliminary steps that are required to configure PHP development environment.

The following optional steps may be helpful: