Overview
Composer is the standard dependency manager for PHP. You list the libraries your project needs in a composer.json file, and Composer works out compatible versions, downloads them and keeps them up to date. It was written by Nils Adermann and Jordi Boggiano and is released under the MIT licence.
It works per project rather than system-wide: packages go into a vendor folder inside the project, which makes it different from operating system package managers such as Apt or Yum. A global mode exists for tools you want available everywhere. Packages are normally found on Packagist, the public package index that Composer uses by default.
Composer is a command-line tool that runs on Linux, Unix, macOS and Windows. On Windows there is a Composer-Setup installer that also sets up the PATH; elsewhere you download composer.phar and either run it with PHP or move it somewhere on your PATH. An official Docker image is also published. The current version needs PHP 7.2.5 or newer, and a long-term-support 2.2 line remains for older PHP versions.
Categories
Features
- Declares project dependencies in a composer.json file
- Resolves, installs and updates libraries into a per-project vendor folder
- Uses Packagist as its default public package index
- Global command for tools you want available across projects
- Windows installer that sets up the PATH automatically
- Official Docker image
- Works with Git, Subversion, Mercurial, Fossil and Perforce sources
- Long-term-support 2.2 release line for old PHP versions
Privacy
See the official privacy policy. Composer runs locally on your machine and needs no account; it downloads packages from Packagist and the source hosts your project points to.
Pros & Cons
Pros
- Free and open source under the MIT licence
- The de facto standard, so nearly every PHP library supports it
- Keeps dependencies isolated per project
- Runs on Windows, macOS and Linux
Cons
- Command-line only, with no graphical interface
- Needs PHP installed first
- The current release does not run on PHP older than 7.2.5
- Extra tools such as unzip or Git are needed for some package sources
Community Reviews (0)
No written reviews yet — be the first to rate this tool.
Similar Tools
-
PHP · PHP.net
Documents the PHP language and its built-in functions.
Free No Signup Web -
Builds PHP web applications with an expressive framework.
Open Source No Signup Windows Linux -
Builds PHP web applications and reusable components.
Open Source No Signup Web