# Composer

> A Dependency Manager for PHP

Source: https://talira.ai/catalog/composer-rk1d8tje
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [developer tools / package managers](https://talira.ai/categories/developer-tools/package-managers), [languages / php](https://talira.ai/categories/languages/php)
- Platforms: windows, linux, macos, docker, cli[^3]
- Licence: MIT[^4][^5]
- Pricing: Free and open source[^4]
- Pricing notes: Composer and all content on getcomposer.org are released under the MIT licence.
- Free tier: yes[^4]
- Self-hostable: yes[^3]
- Plugins: yes[^6]
- Creator: Nils Adermann and Jordi Boggiano

Composer is the dependency manager for PHP: you declare the libraries a project depends on and it works out which versions fit together, then installs and updates them in the project's vendor directory. It was inspired by npm and Bundler, installs nothing globally by default (a global project is available for tools) and pulls packages from Packagist.org or straight from [Git](https://talira.ai/catalog/git-ab5bez9f.md), Mercurial, Subversion, Fossil and Perforce repositories. It ships as a PHP archive with an installer, and as [Docker](https://talira.ai/catalog/docker-engine-9442r3nw.md) images.

## Links

- Website: https://getcomposer.org/
- GitHub: https://github.com/composer/composer
- Docs: https://getcomposer.org/doc/

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/composer>[^1]
- [APT](https://talira.ai/catalog/apt-d7essv0z.md): <https://packages.debian.org/stable/composer>[^2]

## Problems it solves

- install and update the PHP libraries my project depends on without copying files around by hand
- work out which versions of my PHP dependencies are compatible with each other
- update all of my PHP project's dependencies with one command
- keep each PHP project's libraries inside the project instead of installing them system-wide
- add a PHP dependency manager to my Docker image by copying in a prebuilt binary
- install PHP libraries straight from a git or Subversion repository, not only a public registry
- install PHP command-line tools once for my user and use them in every project
- manage dependencies for a legacy app stuck on PHP 5.3

## Features

- per-project installs into the vendor directory
- dependency resolution across version constraints
- update every dependency with one command
- global project for command-line tools
- Packagist.org as the default package repository
- repositories from Git, Mercurial, Subversion, Fossil and Perforce
- single-file PHAR executable with an installer script
- Docker images, including binary-only images to copy into your own
- plugins
- long-term-support 2.2 line for PHP 5.3.2 and later

## Limitations

- Doesn't install system packages like apt or yum: it installs libraries per project, into the project's vendor directory[^3]

## Capabilities

- Has a command line tool: plan not known
- Takes plugins: plan not known

## Trust

Overall: 0.77 out of 1.
Signals: maintenance 1.00, adoption 0.89, momentum 0.67, community 1.00, backing 0.20, extensibility 0.40.

- last commit 5 days ago
- 185 commits in the last 90 days
- latest release 2.11.2 14 days ago
- 29.6k GitHub stars
- 1330 contributors
- accepts sponsorship (Github, Custom)
- created by Nils Adermann and Jordi Boggiano
- has a plugin system

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^2]: https://deb.debian.org/debian/dists/stable/main/source/Sources.xz (checked 21 Nov 2026)
[^3]: https://getcomposer.org/doc/00-intro.md (checked 19 Nov 2026)
[^4]: https://getcomposer.org/ (checked 19 Nov 2026)
[^5]: https://github.com/composer/composer/blob/main/LICENSE (checked 19 Nov 2026)
[^6]: https://getcomposer.org/doc/articles/plugins.md (checked 19 Nov 2026)
