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.
Existing mirrors
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/help/composer.html
- Asia, India packagist.in
- Asia, Indonesia packagist.phpindonesia.id
- Asia, Japan packagist.jp
- Asia, South Korea packagist.kr
- Asia, Thailand packagist.mycools.in.th/
- Asia, Taiwan packagist.tw/
- Europe, Finland packagist.fi
- Europe, Germany packagist.hesse.im
- 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.