2013-03-11 25 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

相关问题