Jump to content

Composer (software)

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Kghbln (talk | contribs) at 15:29, 18 March 2014 (upd). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Composer
Developer(s)Nils Adermann,
Jordi Boggiano
Stable release
1.0.0-alpha8 / January 6, 2014 (2014-01-06)
Repository
Written inPHP
Operating systemCross-platform
TypePackage manager
LicenseMIT License
Websitegetcomposer.org
As ofJanuary 2014

Composer is a application-level dependency manager for the PHP programming language that provides a standard format for managing dependencies of PHP software and required libraries. It was developed by Nils Adermann and Jordi Boggiano, who continue to manage the project. They began development in April 2011 and first released it on March 1, 2012.[1] Composer is strongly inspired by Node.js's "npm" and Ruby's "bundler".[2]

Composer runs through the command line and installs dependencies (e.g. libraries) for an application. It also allows users to install PHP applications that are available on "Packagist"[3] which is its main repository containing available packages. It also provides autoload capabilities for libraries that specify autoload information to ease usage of third-party code.

Example

The following example shows how to install e.g. Semantic MediaWiki versions ≥ 1.9.0.1 :

$ php composer.phar require mediawiki/semantic-media-wiki "1.9.*,>=1.9.0.1"

References

  1. ^ Software CHANGELOG, github.com, Retrieved November 28, 2013.
  2. ^ Getting Started/Dependency management, getcomposer.org, Retrieved November 28, 2013.
  3. ^ See packagist.org