Skip to main content

Glossary D

Glossary · E-commerce

Dependency

Area
E-commerce

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.

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 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), 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.

Where the term appears

Sources

  1. Composer Documentation: Introduction (opens in a new tab)

    Composer (getcomposer.org) accessed

  2. Composer Documentation: The composer.json schema (opens in a new tab)

    Composer (getcomposer.org) accessed

  3. Composer Documentation: Basic usage (opens in a new tab)

    Composer (getcomposer.org) accessed

  4. SBOM-Anforderungen: TR-03183-2 stärkt Sicherheit in der Software-Lieferkette (Meldung vom 04.08.2023) (opens in a new tab)

    Bundesamt für Sicherheit in der Informationstechnik (BSI) accessed

  5. Semantic Versioning 2.0.0, deutsche Fassung (opens in a new tab)

    Semantic Versioning (semver.org) accessed

  6. GitHub-Glossar (deutsche Fassung) (opens in a new tab)

    GitHub Docs (docs.github.com) accessed

Share on LinkedIn

Let's talk about your project.

If this term is on your desk right now, a conversation usually helps faster than any definition.

Search the website

Popular topics

All results