我无法弄清楚如何在使用composer进行自举时运行zf.PHP(Zend Framework 2 Tool).
首先我根据文档引导作曲家和zftool:
$mkdir tmp && cd tmp $curl -s https://getcomposer.org/installer | PHP $./composer.phar require zendframework/zftool:dev-master
这到目前为止工作正常.
$vendor/zendframework/zftool/zf.PHP PHP Warning: require_once(/Users/seb/tmp/vendor/zendframework/zftool/vendor/autoload.PHP): Failed to open stream: No such file or directory in /Users/seb/tmp/vendor/zendframework/zftool/zf.PHP on line 13 Warning: require_once(/Users/seb/tmp/vendor/zendframework/zftool/vendor/autoload.PHP): Failed to open stream: No such file or directory in /Users/seb/tmp/vendor/zendframework/zftool/zf.PHP on line 13 PHP Fatal error: require_once(): Failed opening required '/Users/seb/tmp/vendor/zendframework/zftool/vendor/autoload.PHP' (include_path='.:/opt/local/lib/PHP') in /Users/seb/tmp/vendor/zendframework/zftool/zf.PHP on line 13 Fatal error: require_once(): Failed opening required '/Users/seb/tmp/vendor/zendframework/zftool/vendor/autoload.PHP' (include_path='.:/opt/local/lib/PHP') in /Users/seb/tmp/vendor/zendframework/zftool/zf.PHP on line 13
我究竟做错了什么?我在Mac上使用PHP 5.3.21.