2013-03-11 44 views
1

這裏的composer.jsonzendframework/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回答。

+0

這是不正常的,但在我的系統構成也安裝整個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

回答

2

它沒有。

使用composer.json文件,我得到這個:

$ composer.phar install 
Loading composer repositories with package information 
Installing dependencies 
    - Installing zendframework/zend-stdlib (2.1.3) 
    Downloading: 100%   

    - Installing zendframework/zend-servicemanager (2.1.3) 
    Downloading: 100%   

    - Installing zendframework/zend-filter (2.1.3) 
    Downloading: 100%   

    - Installing zendframework/zend-i18n (2.1.3) 
    Downloading: 100%   

    - Installing zendframework/zend-validator (2.1.3) 
    Downloading: 100%   

    - Installing zendframework/zend-escaper (2.1.3) 
    Downloading: 100%   

    - Installing zendframework/zend-uri (2.1.3) 
    Downloading: 100%   

    - Installing zendframework/zend-loader (2.1.3) 
    Downloading: 100%   

    - Installing zendframework/zend-http (2.1.3) 
    Downloading: 100%   

zendframework/zend-stdlib suggests installing pecl-weakref (Implementation of weak references for Stdlib\CallbackHandler) 
zendframework/zend-servicemanager suggests installing zendframework/zend-di (Zend\Di component) 
zendframework/zend-filter suggests installing zendframework/zend-crypt (Zend\Crypt component) 
zendframework/zend-validator suggests installing zendframework/zend-db (Zend\Db component) 
zendframework/zend-validator suggests installing zendframework/zend-math (Zend\Math component) 
Writing lock file 
Generating autoload files 

zend-http具有依賴性的完整列表是:

  • 逃避者
  • 過濾
  • 國際化
  • 裝載機
  • Se rviceManager
  • STDLIB
  • 烏里
  • 驗證
+0

@davidloubere也要注意,你不需要添加'packages.zendframework.com'到存儲庫:) – Ocramius 2013-03-12 09:03:08

+0

@Ocramius我知道但閱讀'packages.zendframework.com',我認爲最好遵循它們,即添加ZF composer倉庫。只需要提一提,如果我從'composer.json'(我在Ubuntu 11.04上)中刪除對它的引用,同樣的問題仍然會發生。 – David 2013-03-12 21:25:31

+0

@davidloubere你使用最新的作曲家版本? – Ocramius 2013-03-12 21:34:22

相關問題