Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install component zf2 using composer

I try to install zf2 component using composer but can't do it because composer always download all framework, what am i doing wrong?

Composer version 1beccf9

{
 ...
"repositories": [
 {
   "type": "composer",
   "url": "http://packages.zendframework.com/"
 }
 ],
"require": {
  "zendframework/zend-http" : "2.0.*"
 }
}
like image 622
x4nder Avatar asked Jan 16 '13 10:01

x4nder


2 Answers

I enabled php_intl extension and that solved the problem

like image 179
MAXakaWIZARD Avatar answered Sep 24 '22 02:09

MAXakaWIZARD


I cannot reproduce the issue. I have tried with both the "http" and "https" schema, and in both cases, received only the zend-http package and its dependencies. The only possible issue I can see is that if you're not using the "https" schema, and do not have openssl compiled into your PHP version, it's possible that Composer is unable to reach our repository, and thus defaults to the packagist repository, which will only ever give you the full ZF distribution.

like image 42
weierophinney Avatar answered Sep 22 '22 02:09

weierophinney