Skip to main content

Composer Repositories

Composer is a dependency manager for PHP. You declare the libraries your project depends on, and Composer installs and updates them.

See the Composer documentation

Nexus Repository provides Composer repository support so that you can cache packages from external Composer repositories, host internal and third-party packages, and expose multiple Composer repositories through a single group endpoint.

Composer repositories are available on Sonatype Cloud and Nexus self-hosted Pro deployments.

Note

  • Nexus Repository native Composer support does not support migration from the Community Composer plugin.

  • Nexus Repository supports the Composer v2 protocol only. You cannot proxy repositories that provide only Composer v1 metadata, such as the Magento Composer repository.

Getting Started with Composer in Nexus

Explore the following topics to configure and use Composer with Nexus:

Nexus for Composer

  • NEW IN 3.75.0 Proxy Repository: Cache packages from public or privately hosted Composer v2 repositories.

  • NEW IN 3.95.0 Hosted Repository: Supports uploading of .zip, .tgz, and .tar.gz archives and MIME type validated.

  • NEW IN 3.95.0 Group Repository: Combine Composer proxy, hosted, and group repositories and expose them through one URL.

  • NEW IN 3.95.0 Rebuild stable and development p2 metadata for one or all hosted composer repositories.

  • Supports anonymous and authenticated access.