Expand description
Composer v2 repository wire documents: the per-package p2/*.json
(PackageDocument) and the root packages.json (RootManifest).
Structsยง
- Package
Document - A
/p2/<vendor>/<name>.jsondocument: a map (usually single-entry, keyed byvendor/name) of version lists. WhenminifiedisSome("composer/2.0"), the version lists are sparse diffs (seecrate::minify); otherwise each entry stands alone. - Root
Manifest - The root
packages.jsonof a Composer v2 repository. Tells a client where to fetch per-package metadata (metadata_url, a template with a%package%placeholder) and, optionally, which packages exist. Unknown root keys round-trip throughextra.