A tool to create a local or public mirror of Packagist metadata for faster Composer package downloads in regions with slow internet.
Packagist Mirror is a tool for creating a local or public mirror of the Packagist.org metadata repository used by PHP Composer. It solves the problem of slow package downloads in regions with poor connectivity or high latency from the main Packagist servers by caching metadata closer to the user.
PHP developers, DevOps engineers, and organizations in regions with slow or unreliable internet access to Packagist.org, or those wanting to run an internal package repository for faster builds.
It provides a self-hosted, easy-to-deploy mirror solution that significantly speeds up Composer operations, reduces external dependency, and can be set up as a public mirror to help distribute load across the global PHP community.
📦✂️📋📦 Create a mirror of packagist.org metadata for use locally with composer
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Supports deployment via Docker Compose, Docker with Nginx/PHP, or traditional setups, offering flexibility for different environments as shown in the README's setup sections.
Was recommended by packagist.org and used in multiple countries like Brazil and China, with a listed observatory of public mirrors, proving its reliability and community trust.
After initial sync, it only pulls new or updated packages, reducing bandwidth and sync time, which is highlighted in the 'How it works' section.
Clients automatically fall back to a configured main mirror if the local mirror fails, ensuring uptime and resilience as described in the key features.
The project is frozen since Composer 2's release and explicitly marked as DEPRECATED in the README, meaning no updates or support.
It does not support Composer 2, which has built-in performance improvements and a global CDN, making it obsolete for modern PHP workflows.
Requires at least 2GB of RAM to avoid disk swapping during sync, as noted in the setup tips, which can be a barrier for lightweight environments.