Enabling PHP support
After you have downloaded, installed, and configured the tools that make your development environment, you need to integrate them with IntelliJ IDEA and activate their support in the project you are going to work with. Basically, all you need to start is configure your PHP installation as an interpreter. You can have several PHP engines installed on your computer, or on remote hosts, or in Vagrant virtual development environments and configured as interpreters in IntelliJ IDEA, see Configuring Local PHP Interpreters and Configuring Remote PHP Interpreters. However, within a project, you can have only one of these interpreters activated.
Optionally, you can also enable support of other PHP development tools, see Configuring Synchronization with a Web Server, Configuring a Debugging Engine, PHP-Specific Command Line Tools, Testing PHP Applications.
Before you start
- Install and enable the PHP plugin.
Synchronization with Web servers is provided via the Remote Hosts Access bundled plugin.
The plugin is not bundled with IntelliJ IDEA, but it is available from the JetBrains plugin repository. Once enabled, the plugin is available at the IDE level, that is, you can use it in all your IntelliJ IDEA projects. See Installing, Updating and Uninstalling Repository Plugins and Enabling and Disabling Plugins for details.
In this sections:
- Configuring Remote PHP Interpreters
- Configuring Local PHP Interpreters
- Enabling PHP Support in a Project