# Composer

> Composer is a tool for dependency management in PHP: a project declares the libraries it depends on, and Composer installs and updates them.

Original page: https://t10.de/en/glossary/composer
Publisher: total10 GmbH, https://t10.de/en/glossary

All a project needs to get started with Composer is a file called composer.json. According to the [Composer documentation on basic usage](https://getcomposer.org/doc/01-basic-usage.md), the file describes the project's dependencies and can hold other metadata as well. Composer works project by project. It installs packages into a directory inside the project, such as `vendor`, and by default installs nothing globally.

The same file can also state which versions of server software a project requires. Composer handles this through platform packages, which represent software installed on the server, such as PHP itself and its extensions. The exact package versions installed are recorded elsewhere, in the lock file. The command `composer audit` compares the installed packages with security advisories.

In our Shopware 5 work, the composer.json that ships with the shop system tells us which PHP versions a shop allows. Our standard approach is to leave that file as it is. The dependencies we update go into our own Composer manifest instead: a second file, kept apart from the shipped one. We run `composer audit` on those updated dependencies as well.

## See also

- [Security advisory](https://t10.de/en/glossary/security-advisory): A security advisory is a published notice about a vulnerability in a software component that names the affected versions and, where available, the first fixed version.
- [Dependency](https://t10.de/en/glossary/dependency): A dependency is a third-party software package that a project builds on and needs in order to run; packages required by a dependency count as dependencies too.
- [Repository](https://t10.de/en/glossary/repository): A repository (on GitHub, for example) holds a software project with all its files, its documentation and the revision history of every file.
- [Lock file](https://t10.de/en/glossary/lock-file): A lock file records the exact versions of all packages installed in a project, so that every installation ends up in the same state; with Composer it is composer.lock.
- [Symfony](https://t10.de/en/glossary/symfony): Symfony is an open-source PHP framework, a ready-made foundation for web applications, released under the MIT licence and developed by its community to a fixed release schedule.

## Where the term appears

- [Shopware 5: end of vendor support](https://t10.de/en/merchant-radar/shopware-5-end-of-support)
- [Retrofitting a Shopware 5 shop for the legal duties of 2026 and 2027](https://t10.de/en/blog/shopware-5-new-legal-duties-2026-2027)

## Sources

1. [Composer Documentation: Introduction](https://getcomposer.org/doc/00-intro.md), Composer (getcomposer.org), accessed 2026-11-16
2. [Composer Documentation: Basic usage](https://getcomposer.org/doc/01-basic-usage.md), Composer (getcomposer.org), accessed 2026-11-16
3. [Composer Documentation: Command-line interface / Commands (audit)](https://getcomposer.org/doc/03-cli.md#audit), Composer (getcomposer.org), accessed 2026-11-16
