Composer 镜像站管理

Composer 镜像站管理

KanekiYuto
2025-01-22 / 0 评论 / 11 阅读 / 正在检测是否收录...
温馨提示:
本文最后更新于2025年01月22日,已超过71天没有更新,若内容或图片失效,请留言反馈。

安装

composer global require slince/composer-registry-manager

查看镜像站列表

composer repo:ls

* 表示当前镜像站,部分站点可能无法正常使用。

 --- ------------- ------------------------------------------------ ------------------------------
      composer      https://packagist.org                            Europe, Canada and Singapore
      aliyun        https://mirrors.aliyun.com/composer              China
      tencent       https://mirrors.cloud.tencent.com/composer       China
      huawei        https://mirrors.huaweicloud.com/repository/php   China
      sjtug         https://packagist.mirrors.sjtug.sjtu.edu.cn      China
      phpcomposer   https://packagist.phpcomposer.com                China
      kkame         https://packagist.kr                             South Korea
  *   hiraku        https://packagist.jp                             Japan
      webysther     https://packagist.com.br                         Brazil
      solidworx     https://packagist.co.za                          South Africa
      indra         https://packagist.phpindonesia.id                Indonesia
      varun         https://packagist.in                             India
 --- ------------- ------------------------------------------------ ------------------------------

使用镜像站

# hiraku 对应 Japan,即最左侧一列内容。
composer repo:use hiraku
[OK] Use the repository [hiraku] successfully 

补充

更多使用说明请查阅 官方文档

0

评论 (0)

取消