Behind the dependency manager for PHP Composer works with the PHP package archive service Packagist. So when I want to defind Zend Framework 2 as a package, my project depends on, I use the syntax developer/package
:
composer.json
{
"name": "Project Name",
"description": "Project Description",
"require": {
"php": ">=5.3.23",
"zendframework/zendframework": ">=2.3.2,<3.0.0",
...
}
...
}
Then I run composer install
and looks in the Packagist archive for the packges, I defined as dependencies.
Now the Bower:
I can define the dependencies in the bower.json
and get them with bower init
or load them directly with bower install <package>
. In both cases the package can be defined as a GitHub address or any URL (http://sld.tld/file.js
), but also in form of developer/package
(bower install angular/angular.js
) or even just package
(bower install jquery
).
What is Bower's "Packagist"? Which package service provides the package repository for Bower?