IntelliJ IDEA 2022.2 Help

Configure PHP development environment

PHP development requires the following software installed and configured:

  • A Web server and a PHP engine are mandatory. Starting with version 5.4, PHP interpreters contain a built-in Web server. The server is by no means intended for production but for development and testing purposes only.

  • A database server, if your application will use a database.

  • A debugging tool, if you are going to debug your application.

  • A command line tool, if you are going to run PHP commands from the command line.

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.

  1. Press Ctrl+Alt+S to open the IDE settings and select Plugins.

  2. Switch to the Marketplace tab and use the search field to find the PHP plugin.

  3. Click Install and restart the IDE if prompted.

Configuring PHP development environment

  1. Download, install, and configure the Web server, the PHP engine, and the MySQL server. Do one of the following:

  2. Optionally, perform these steps:

Last modified: 14 July 2022