Mirrors of the Packagist.org Metadata
Disclaimer: A word of caution
Packagist.org tries to provide our own mirrors globally and to scale bandwidth availaibility as required to meet demand from the Composer user base. That said, we can not host in every country and given bandwidth/latency constraint in certain areas of the world it makes sense for people to use more local mirrors.
These mirrors are unafiliated with us, community run and as such they might be considered an additional security risk as the metadata that Composer downloads tells it where to download code from.
Packagist currently provides mirrors in Europe, North America (Montreal), and Asia (Singapore).
On top of this, we are aware of the following list of third-party-run mirrors, please refer to their website to see how to use them:
- Africa, South Africa packagist.co.za
- Asia, China mirrors.huaweicloud.com/repository/php
- Asia, China developer.aliyun.com/composer
- Asia, China php.cnpkg.org
- Asia, China packagist.phpcomposer.com
- Asia, China packagist.mirrors.sjtug.sjtu.edu.cn
- Asia, China mirrors.cloud.tencent.com/composer
- Asia, India packagist.in
- Asia, Indonesia packagist.phpindonesia.id
- Asia, Japan packagist.jp
- Asia, South Korea packagist.kr
- South America, Brazil packagist.com.br
Running your own mirror
If you are interested in running your own mirror, we recommend using Webysther's mirror code to avoid duplicating efforts and then sending us a pull request to get your mirror added to the list above.