# 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.

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

Here, the word refers to a project's technical reliance on a software package. Reliance on a supplier is another matter, covered under lock-in. The Composer documentation describes the basic scenario: a project depends on several libraries, some of which depend on others.

In composer.json, required packages are listed under `require`, each with a version constraint. Composer's [schema documentation](https://getcomposer.org/doc/04-schema.md) adds that a package is installed only if those requirements can be met. Packages needed only for development or tests go under `require-dev`.

The introduction to the Semantic Versioning specification describes "dependency hell": in systems with many dependencies, releasing new package versions can quickly become a nightmare. According to a [press release from the BSI (in German)](https://www.bsi.bund.de/DE/Service-Navi/Presse/Alle-Meldungen-News/Meldungen/TR-03183-2-SBOM-Anforderungen.html), a software bill of materials (SBOM) documents which commercial and free components a software product contains. An SBOM also makes dependencies on third-party components visible.

In the business applications we build for pharma logistics, dependencies are handled as part of a deployment process that includes checks. In one of them, a multi-tenant stock alert application, the deployment script installs the dependencies on the server with every new version. We update the dependencies of a Shopware 5 shop selectively and check where the packages come from. They should come from the upstream repositories (each project's original repository), not from a fork.

## 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.
- [Composer](https://t10.de/en/glossary/composer): Composer is a tool for dependency management in PHP: a project declares the libraries it depends on, and Composer installs and updates them.
- [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.

## Where the term appears

- [Non-GxP in pharma: what we build, what we leave out and where our systems stop](https://t10.de/en/blog/non-gxp-pharma-logistics)
- [Stock alerts in pharma logistics](https://t10.de/en/blog/stock-alerts-pharma)
- [Out of the inbox: a knowledge platform for a pharma logistics provider](https://t10.de/en/blog/knowledge-platform-pharma)

## Sources

1. [Composer Documentation: Introduction](https://getcomposer.org/doc/00-intro.md), Composer (getcomposer.org), accessed 2026-11-16
2. [Composer Documentation: The composer.json schema](https://getcomposer.org/doc/04-schema.md), Composer (getcomposer.org), accessed 2026-11-16
3. [Composer Documentation: Basic usage](https://getcomposer.org/doc/01-basic-usage.md), Composer (getcomposer.org), accessed 2026-11-16
4. [SBOM-Anforderungen: TR-03183-2 stärkt Sicherheit in der Software-Lieferkette (Meldung vom 04.08.2023)](https://www.bsi.bund.de/DE/Service-Navi/Presse/Alle-Meldungen-News/Meldungen/TR-03183-2-SBOM-Anforderungen.html), Bundesamt für Sicherheit in der Informationstechnik (BSI), accessed 2026-11-16
5. [Semantic Versioning 2.0.0, deutsche Fassung](https://semver.org/lang/de/), Semantic Versioning (semver.org), accessed 2026-11-16
6. [GitHub-Glossar (deutsche Fassung)](https://docs.github.com/de/get-started/learning-about-github/github-glossary), GitHub Docs (docs.github.com), accessed 2026-11-16
