Zend Framework 2 Command Line Tool (ZFTool) Support

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

This entry was posted in Cool Feature, Early Access Program and tagged , , , , , . Bookmark the permalink.

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

  1. Jeffery says:

    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:

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

  3. Andr says:

    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:

    @Jeffery,

    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

    https://packages.zendframework.com/zftool.phar

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">