這裏的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