IntelliJ IDEA 2016.3 Help

PHP-Specific Guidelines

This feature is supported in the Ultimate edition only.

PHP support includes:

PHP development support is provided through the PHP plugin. The plugin is not bundled with IntelliJ IDEA, but it can be installed from the JetBrains plugin repository as described in Installing, Updating and Uninstalling Repository Plugins and Enabling and Disabling Plugins.

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

To develop an application using PHP

Follow these general steps:

  1. Configure the PHP development environment.
  2. Enable PHP support in IntelliJ IDEA.
  3. Start creating a project from scratch. 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.
  4. Create and configure the required data sources (see Managing Data Sources).
  5. Populate the application using provided coding assistance.
  6. Deploy the application.
  7. Run the application. You can do it in several ways:
    • From IntelliJ IDEA using a run configuration of the type PHP Web Application to view application output in a browser.
    • From IntelliJ IDEA using a PHP Console run configuration to view the application output in the Run tool window.
    • From IntelliJ IDEA, using a built-in Web server. This approach saves your time and effort because you do not need to deploy the application sources.

The following optional steps may be helpful:

See Also

Last modified: 21 March 2017