系统全局配置: 可以使用 composer config -l -g 查看所有全局配置 composer config -l -g Composer 镜像使用帮助 切换镜像指向: composer
可以使用 composer config -l -g
查看所有全局配置
composer config -l -g
Composer
镜像使用帮助composer config -g repos.packaGISt composer https://mirrors.tencent.com/composer/
Composer
安装简明教程:wget Https://mirrors.tencent.com/composer/composer.phar
mv composer.phar /usr/local/bin/composer
composer config -g --unset repos.packagist
composer config --unset repos.packagist
composer
镜像源管理工具https://GitHub.com/slince/composer-registry-manager
composer global require slince/composer-registry-manager ^2.0
$ composer repo:ls --- ------------- ------------------------------------------------ ------------------------------ composer https://packagist.orgEurope, 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 cnpkg https://php.cnpkg.orGChina 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 --- ------------- ------------------------------------------------ ------------------------------
$ composer repo:usePlease select your favorite repository (defaults to composer) [composer]: [0 ] composer [1 ] aliyun [2 ] tencent [3 ] huawei [4 ] cnpkg [5 ] sjtug [6 ] phpcomposer [7 ] kkame [8 ] hiraku [9 ] webysther [10] solidworx [11] indra [12] varun>
$ composer repo:use aliyun
Use the following command for help.
$ composer repo _____ _____ ___ ___/ ___| | _ \ / |/ || | | |_| | / /| /| || | | _ / / / |__/ | || |___ | | \ \ / / | |\_____| |_| \_\ /_/ |_|Composer Repository Manager version 2.0.0Usage: command [options] [arguments]Options: -h, --help Display this help message -q, --quiet Do not output any message -V, --version Display this application version --ansi Force ANSI output --no-ansi Disable ANSI output -n, --no-interaction Do not ask any interactive question -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for nORMal output, 2 for more verbose output and 3 for debugAvailable commands for the "repo" namespace: repo:add Creates a repository repo:ls List all available repositories repo:remove Remove a repository repo:use Change current repository
来源地址:https://blog.csdn.net/weixin_41258075/article/details/130361515
--结束END--
本文标题: Composer 查看和配置换源
本文链接: https://www.lsjlt.com/news/405691.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0