Using Composer

Starting with Zend Framework 2, you may now install Zend Framework or any of its individual components and their dependencies, using the dependency management tool Composer. Packages are provided by our dedicated packages repository at, as well as via Packagist.

To use our packages repository, edit your composer.json to add the following:

"repositories": [
        "type": "composer",
        "url": ""

To require any of our packages, use the composer command within your project root:

$ composer require zendframework/zendframework
$ composer require zendframework/zend-diactoros

Available Packages