Zend Framework 2 Command Line Tool (ZFTool) Support

Posted on by Maarten Balliauw

It has been possible to make use of command line tools for a while.  Using the Tools | Run Command… menu we can invoke commands right from our IDE! Some tools like Composer,  Symfony, Zend Framework 1 and Drush (with the Drupal support) have even had full autocompletion support out of the box, providing help with commands and parameters. The new PhpStorm 7 EAP adds Zend Framework 2’s ZFTool to that list.

Through the Project Settings | Command Line Tool Support settings, we can add Zend Framework 2 as a tool and specify the path to zf.php. From then on, PhpStorm provides full support for this tool from the Command Line Tools Console (Ctrl+Shift+X or Cmd+Shift+X on Mac).

Have a look at our tutorials page on Zend Framework 2 for detailed instructions.

Give PhpStorm 7 EAP a try. And as always, let us hear your thoughts in the issue tracker, through the comments below or in our forums!

Develop with pleasure!
– JetBrains PhpStorm Team

Comments below can no longer be edited.

4 Responses to Zend Framework 2 Command Line Tool (ZFTool) Support

  1. Jeffery says:

    October 24, 2013

    I tested this with latest release 7 and the auto-completion does not work. Commands execute fine and gives the correct output.

    I am not sure if I am doing something wrong.

  2. Nadimuthu says:

    January 13, 2014

    Nice post. And this is very helpful to improve my knowledge in zend framework. and thanks once again.

  3. Andr says:

    September 14, 2014

    If I installing a new zend skeleton zftool working properly. But some time after , ,command arguments became ignored. Command ran but no effects

  4. Alvin Nguyen says:

    October 26, 2014


    You might have figured it out by then, but auto complete only work with .phar file, not PHP.

    You can get the phar file from here



Subscribe for updates