当我尝试安装ZendSkeletonApplication
时,会抛出错误。我在windows命令行中输入命令
>>composer create-project -sdev --repository-url="http://packages.zen
dframework.com" zendframework/skeleton-application E:\php_apps\mopinion-cp
我收到错误
[InvalidArgumentException]
Could not find package zendframework/skeleton-application with stability st
able.
create-project [-s|--stability="..."] [--prefer-source] [--prefer-dist] [--repos
itory-url="..."] [--dev] [--no-custom-installers] [--no-scripts] [--no-progress]
[--keep-vcs] package [directory] [version]
在https://github.com/zendframework/ZendSkeletonApplication中找到的应用程序..并在那里使用相同的命令。
答案 0 :(得分:12)
使用不稳定的版本,只需向dev-master添加稳定性要求:
php composer.phar create-project --repository-url="http://packages.zendframework.com" zendframework/skeleton-application:dev-master path/to/install
需要Composer和Git