Could not open input file: zf.php [duplicate]

2019-09-02 03:11发布

问题:

This question already has an answer here:

  • How to install Zend Framework 2 Tool with composer 2 answers

I am new in zend, so i installed zfTool from here

I use the composer for installing the tool, the command is :

composer require zendframework/zftool:dev-master

But when i run the command : php zf.php version

For example i got this error : Could not open input file: zf.php so please if someone has any idea i will be very appreciative.

回答1:

If you downloaded using composer, you can access the command line of ZfTool as:

vendor/bin/zf.php

For example, to get version:

vendor/bin/zf.php version