How to install Zend Framework 2 Tool with composer

前端 未结 2 1202
渐次进展
渐次进展 2021-01-12 18:03

I can\'t figure out how to run zf.php (Zend Framework 2 Tool) when bootstrapped with composer.

First I bootstrap composer and zftool according to the documentation:<

2条回答
  •  说谎
    说谎 (楼主)
    2021-01-12 18:19

    You should copy zf.php into your root directory and run it from there.

    $ mkdir tmp && cd tmp
    $ curl -s https://getcomposer.org/installer | php
    $ ./composer.phar require zendframework/zftool:dev-master
    $ cp vendor/zendframework/zftool/zf.php .
    $ php zf.php
    

提交回复
热议问题