IntelliJ IDEA 2016.2 Help

PHP-Specific Command Line Tools

With IntelliJ IDEA, you can use PHP from the command line through integration with PHP-specific command line tools. Integration with command line tools is provided at the IntelliJ IDEA level, so once configured, a tool can be used in all your IntelliJ IDEA projects. Just activate or de-activate it when necessary depending on the needs of each specific project.

IntelliJ IDEA supports integration with third-party PHP-specific tools:

  1. Symfony, version 1.1 or higher.
  2. Symfony2 that incorporates the Twig template engine. IntelliJ IDEA supports the official Symfony2 code style for Twig and automatically inserts one space after an opening pair of curvy braces and before a closing pair of curvy braces in Twig templates:
    {{ some_variable }}
  3. Zend Framework.
  4. Yii.

Alternatively, you can create your own tool and populate it with commands that fit your preferences and needs. The available tools are listed in the Command Line Tool Support page of the Settings dialog box.

Note that PHP-specific command line tools work only with local PHP interpreters, see Configuring Local PHP Interpreters and Enabling PHP Support.

To work with a PHP command line tool, perform these general steps:

See Also

Last modified: 23 November 2016