这里的composer.json
:zendframework/zend-http软件包需要49个组件是否正常?
{
"repositories": [
{
"type": "composer",
"url": "https://packages.zendframework.com/"
}
],
"require": {
"zendframework/zend-http": "2.*"
}
}
...和详尽的清单:
Authentication Code Db Escaper Filter InputFilter Log Mime Paginator Server Stdlib Uri XmlRpc
Barcode Config Debug EventManager Form Json Mail ModuleManager Permissions ServiceManager Tag Validator
Cache Console Di Feed Http Ldap Math Mvc ProgressBar Session Test Version
Captcha Crypt Dom File I18n Loader Memory Navigation Serializer Soap Text View
他们中的一些实际意义。但是,例如Barcode
,Captcha
,Navigation
甚至Db
?
编辑
$ rm -rf vendor
$ rm -rf ~/.composer/
$ rm composer.lock
$ more composer.json
{
"require": {
"zendframework/zend-http": "2.*"
}
}
$ composer self-update
You are using the latest composer version.
$ composer install
Loading composer repositories with package information
Installing dependencies
- Installing zendframework/zendframework (2.1.3)
Downloading: 100%
zendframework/zendframework suggests installing doctrine/common (Doctrine\Common >=2.1 for annotation features)
zendframework/zendframework suggests installing ext-intl (ext/intl for i18n features)
zendframework/zendframework suggests installing pecl-weakref (Implementation of weak references for Zend\Stdlib\CallbackHandler)
zendframework/zendframework suggests installing zendframework/zendpdf (ZendPdf for creating PDF representations of barcodes)
zendframework/zendframework suggests installing zendframework/zendservice-recaptcha (ZendService\ReCaptcha for rendering ReCaptchas in Zend\Captcha and/or Zend\Form)
Writing lock file
Generating autoload files
PS:高兴的是,一些人认为我的问题是单纯善良被关闭......我真的很感谢别人有tryed回答。
这是不正常的,但在我的系统构成也安装整个zendframework/zendframework包。这似乎是一些人正在经历的问题。见[这里](http://zend-framework-community.634137.n4.nabble.com/Zend-Framework-Composer-Pakages-td4656012.html),[here](http://stackoverflow.com/questions/ 11747962/zend-framework-composer-packages)和[这里](https://groups.google.com/forum/?fromgroups=#!topic/composer-dev/yT33S9A9x1o)。我通过搜索发现了更多的人,但还没有看到解决方案。一个说安装Intl扩展固定它,但我没有尝试 – drew010 2013-03-12 17:00:56