我想安装ZF2 ZendRest module。如何在zf2中安装ZendRest模块?
如何安装?
当我在\供应商\ zendrest做
php .\composer.phar install
。我得到:
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'文件吗? – Florent
我使用了这里给出的composer.json:https://github.com/zendframework/ZendRest/blob/master/composer.json – Dionysos
这不是作曲家的作品!你需要创建你自己的'composer.json'并添加一个依赖到'zendframework/zendrest'。 – Florent