

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. Open the Marketplace tab, find the PHP plugin, and click Install (restart the IDE if prompted).Ĭonfigure the PHP development environment.Ĭonfigure PHP interpreters as described in Configuring Local PHP Interpreters and Configuring Remote PHP Interpreters. Press Ctrl+Alt+S to open the IDE settings and select Plugins. The PHP plugin is available only in IntelliJ IDEA Ultimate. This functionality relies on the PHP plugin, which you need to install and enable. 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 PHP plugin is not bundled with IntelliJ IDEA, but it can be installed on the Settings | Plugins page, tab Marketplace, as described in Installing plugins from JetBrains repository.

PHP development support is provided through the PHP plugin. Surrounding with code constructs Ctrl+Alt+J and Ctrl+Alt+T. Resolution of include statements and file references, including references to PHAR archives.Īll 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. Possibility to create PHP files and classes from templates.įull 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, PHP 8.1, and PHP 8.2 syntax support.
