This feature is supported in the Ultimate edition only.
IntelliJ IDEA supports running commands of popular third-party or user-defined PHP tools:
-
Symfony
, version 1.1 or higher.
-
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 }}. -
Zend Framework 1
.
-
Zend Framework 2 (ZFTool)
.
-
Yii
.
-
Composer Dependency Manager
.
-
Drush
, version 5.8 and higher.
-
Symfony console-based tools Laravel
and Doctrine
.
These tools are installed through Composer.
-
WordPress Command Line Interface
.
The available tools are listed on the Command Line Tool Support page of the Settings / Preferences Dialog.
Note that PHP-specific command line tools work only with local PHP interpreters.
Before you start, install and enable the PHP and Command Line Tool Support repository plugins on the Plugins page of the Settings / Preferences Dialog.
To work with a PHP command line tool, perform these general steps:
- Download and enable the required third party tool or define a custom tool.
- Create a tool-specific project, open it in IntelliJ IDEA, and monitor its structure in the Framework tool window.
- Customize the tool commands, if necessary.
-
Reload the commands from the executable file.
You can add new tasks to the
.xmltool descriptor and use them without removing the tool from the list and configuring it anew. - Invoke commands and analyze the results of their execution in the Command Line Tools Console.
Reloading commands is currently supported only for Symfony.