CRM - Composer Registry Manager
, (*1)
Composer Registry Manager can help you easily and quickly switch between different composer repositories., (*2)
简体中文, (*3)
Installation
Install via composer, (*4)
$ composer global require slince/composer-registry-manager ^2.0
Example
List all available repositories
$ 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
cnpkg https://php.cnpkg.org 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
--- ------------- ------------------------------------------------ ------------------------------
You can filter by location using --location xx
, (*5)
$ composer repo:ls --location China
Switch repository
$ composer repo:use
Please 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
>
You can also skip selection by giving repository name., (*6)
$ composer repo:use aliyun
Add the option --current/-c
for the current project., (*7)
Reset command
If you want to discard all custom mirrors, you can use the following command:, (*8)
$ composer repo:reset
Available commands
Use the following command for help., (*9)
$ composer repo
_____ _____ ___ ___
/ ___| | _ \ / |/ |
| | | |_| | / /| /| |
| | | _ / / / |__/ | |
| |___ | | \ \ / / | |
\_____| |_| \_\ /_/ |_|
Composer Repository Manager version 2.0.0
Usage:
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 debug
Available 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
LICENSE
The MIT license. See MIT, (*10)