Composer Registry Manager can help you easily and quickly switch between different composer repositories.
Install via composer
$ composer global require slince/composer-registry-manager ^2.0
$ composer repo:ls
composer https://packagist.org
phpcomposer https://packagist.phpcomposer.com
* composer-proxy https://packagist.composer-proxy.org
laravel-china https://packagist.laravel-china.org
$ composer repo:use
Please select your favorite registry (defaults to composer)
[0] composer
[1] phpcomposer
[2] composer-proxy
[3] laravel-china
>
You can also skip selection by giving repository name.
$ composer repo:use phpcomposer
Add the option --current/-c
for the current project.
Use the following command for help.
$ 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
The MIT license. See MIT