【发布时间】:2012-08-17 22:37:48
【问题描述】:
我想安装ZF2 ZendRest module。
如何安装?
当我在做的时候
php .\composer.phar install
在\vendor\zendrest 中。我明白了:
Loading composer repositories with package information
Installing dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package zendframework/zend-http 1.0.0 could not be found.
Problem 2
- The requested package zendframework/zend-uri 1.0.0 could not be found.
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum- stability setting
see https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion for more details.
我应该把 ZendRest 文件夹放在哪里?
谢谢!
【问题讨论】:
-
您可以发布您的
composer.json文件吗? -
我使用了这里给出的 composer.json:github.com/zendframework/ZendRest/blob/master/composer.json
-
作曲家不是这样工作的!您需要创建自己的
composer.json并将依赖项添加到zendframework/zendrest。 -
是的,但是我在里面放了什么?我应该把它放在哪里?我的主干文件夹中已经有了 Zend Framework 的 composer.json。
标签: zend-framework zend-framework2 composer-php