Skip to content

feat(mirror): support mirroring Composer v2 registries - #151

Merged
maartenbode merged 1 commit into
mainfrom
feat/mirror-composer-v2
Jun 10, 2026
Merged

maartenbode merged 1 commit into
mainfrom
feat/mirror-composer-v2

Conversation

@maartenbode

Copy link
Copy Markdown
Member

Closes #138

  • Adds a V2RegistryClient that reads the Composer v2 metadata-url layout (fetching the per-package p2/%package%.json and ~dev files and expanding the minified metadata), enabling mirroring another Pricore instance and v2-only registries like Private Packagist.
  • RegistryClientFactory now detects and prioritizes v2, keeping the v1 inline/includes formats as fallbacks. Registries that only expose a list endpoint (e.g. full Packagist) fail with a clear, actionable error rather than attempting to enumerate everything.

@maartenbode
maartenbode merged commit efaeb85 into main Jun 10, 2026
3 checks passed
@maartenbode
maartenbode deleted the feat/mirror-composer-v2 branch June 10, 2026 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Mirroring a Composer v2 Registry

1 participant