Glossary · E-commerce
Dependency
- Area
- E-commerce
- Related
- Security advisory, Composer, Repository, Lock file
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 Lock-in Lock-in is a customer's dependence on a supplier that makes it less attractive, or harder, to switch to a different one. Read in the glossary → . The Composer Composer Composer is a tool for dependency management in PHP: a project declares the libraries it depends on, and Composer installs and updates them. Read in the glossary → 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 An SBOM (software bill of materials) is a machine-readable record of the components of a software product and of their supply chain relationships. Read in the glossary → (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 Business application In general terms, a business application is software used to perform or support business functions. Read in the glossary → we build for pharma logistics Pharma logistics Pharma logistics is the term we use for storing, transporting and delivering medicinal products and other pharma-sector goods, such as promotional material and supplies for patients. Read in the glossary → , 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 Shopware Shopware is e-commerce software from shopware AG in Schöppingen, Germany; the vendor says its current product, Shopware 6, is a complete redevelopment of Shopware 5. Read in the glossary → 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
See also
-
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.
E-commerce
-
Composer
Composer is a tool for dependency management in PHP: a project declares the libraries it depends on, and Composer installs and updates them.
E-commerce
-
Repository
A repository (on GitHub, for example) holds a software project with all its files, its documentation and the revision history of every file.
E-commerce
-
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.
E-commerce
Sources
-
Composer Documentation: Introduction (opens in a new tab)
Composer (getcomposer.org) accessed
-
Composer Documentation: The composer.json schema (opens in a new tab)
Composer (getcomposer.org) accessed
-
Composer Documentation: Basic usage (opens in a new tab)
Composer (getcomposer.org) accessed
-
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
-
Semantic Versioning 2.0.0, deutsche Fassung (opens in a new tab)
Semantic Versioning (semver.org) accessed
-
GitHub-Glossar (deutsche Fassung) (opens in a new tab)
GitHub Docs (docs.github.com) accessed