Tito Miguel Costa
Refactoring ideas

How to integrate Zend2 packages with Composer

Making use of the Zend2 packages

In case you use composer to manage the dependencies of your PHP project, it will be very easy to integrate Zend2 packages.

Zend2 has its own repository, doesn't use packagist, so you will need to configure it in your composer.json file.

"repositories": [
    {
        "type": "composer",
        "url": "http://packages.zendframework.com/"
    }
]

After adding the Zend2 repository, you can easily download any of the packages available. All you have to do is specifiy it in the require section of composer.json file.

"require": {
    "zendframework/zendgdata": "2.0.*",
    "zendframework/zend-paginator": "2.0.*",
    "zendframework/zendservice-flickr": "2.0.*",
    "zendframework/zend-feed": "2.0.*"
}
26 November, 2012
Tutorial
Zend2, Composer, Packages

Comments