IntelliJ IDEA 2023.1 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, which you need to install and enable.

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

  2. Open the Marketplace tab, find the PHP plugin, and click Install (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: 16 September 2022