Developed By : Nils Adermann, Jordi Boggiano
Development Started @ April,2011
First Released @ March, 2012
Inspired By npm and bundler
Get more @ Here
It is a package manager for the php programming language on the application level.
It can be used through command line or terminal. It is a dependency manager which will manage the dependencies we require on requirement basis. Which means that it will pull in all the required libraries, dependencies and manage them all in one place without no hectic load on the programmer.
We are using PEAR since we are with the php development but the point behind it that it holds the dependency management not on the project basis but on the system wide.
Composer solves this issue and gives us the freedom on the project to project basis.
Installing Composer
$ curl -s https://getcomposer.org/installer | php
$ sudo mv composer.phar /usr/local/bin/composer
$ composer
Using Composer
Create a composer.json file in the root of the projectSo we are ready to go with it.
Make the file like this:
{
"require": {
"<framework/package you want to use>/<framework/package you want to use>": "< version you want to use>"
}
}
$ composer install
This post is on the request of Eduardo Santos
Enjoy Learning :)