PhpStorm 2016.3 Help

PHP-Specific Command Line Tools

With PhpStorm, 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 PhpStorm level, so once configured, a tool can be used in all your PhpStorm projects. Just activate or de-activate it when necessary depending on the needs of each specific project.

PhpStorm supports integration with third-party PHP-specific tools:

  1. Symfony, version 1.1 or higher.
  2. Symfony2 that incorporates the Twig template engine. PhpStorm 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 March 2017