org.packagist.registry
Composer repository list, minimum-stability, and prefer-stable flags. Maps to the repositories and config sections of composer.json. Consumers generating composer.json SHOULD merge these values rather than replace the existing repositories array.
- Namespace:
org.packagist.registry - Owner: community — convention for Composer repository and stability settings
- Status: proposed
- Docs: https://getcomposer.org/doc/05-repositories.md
Illustrative fragment — not a complete projectfile document. Consumers MUST round-trip unknown namespaces even when no shape is published.
---# SPDX-FileCopyrightText: 2026 Damián Búho <damian.buho@proton.me>## SPDX-License-Identifier: CC-BY-4.0# SPDX-License-Identifier: MIT
# Shape: org.packagist.registry extension namespace# Illustrative fragment — not a complete projectfile document.# See registry.yaml for ownership and status.
org: packagist: registry: minimum-stability: stable # OPTIONAL stable | RC | beta | alpha | dev prefer-stable: true # OPTIONAL prefer stable over dev builds
repositories: - type: composer # REQUIRED composer | vcs | path | artifact url: "https://repo.example.com" # REQUIRED for composer and vcs types name: acme # OPTIONAL human label - type: vcs url: "git@github.com:org/private-lib.git"[org.packagist.registry]minimum-stability = "stable"prefer-stable = true
[[org.packagist.registry.repositories]]type = "composer"url = "https://repo.example.com"name = "acme"
[[org.packagist.registry.repositories]]type = "vcs"url = "git@github.com:org/private-lib.git"{ "org": { "packagist": { "registry": { "minimum-stability": "stable", "prefer-stable": true, "repositories": [ { "type": "composer", "url": "https://repo.example.com", "name": "acme" }, { "type": "vcs", "url": "git@github.com:org/private-lib.git" } ] } } }}