Skip to content
🛠 🔨 Composer registry manager that help to easily switch to the composer repository you want.
PHP
Branch: master
Clone or download
slince Merge pull request #15 from coreyee/patch-1
Update README-zh_CN.md
Latest commit d2cfbfa Dec 7, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src add reset command & filter by location Nov 29, 2019
tests add reset command & filter by location Nov 29, 2019
.editorconfig init commit Mar 14, 2017
.gitignore add screenshot Jul 7, 2017
.scrutinizer.yml rename library Jul 7, 2017
.travis.yml remove php74 from travis Nov 29, 2019
LICENSE composer插件话 Apr 4, 2018
README-zh_CN.md Update README-zh_CN.md Dec 7, 2019
README.md add badge Dec 4, 2019
composer.json modify description Nov 29, 2019
crm.default.json Update crm.default.json Nov 18, 2019
phpunit.xml.dist 忽略文件 Apr 4, 2018

README.md

CRM - Composer Registry Manager

Build Status Coverage Status Total Downloads Latest Stable Version Scrutinizer

Composer Registry Manager can help you easily and quickly switch between different composer repositories.

简体中文

Installation

Install via composer

$ 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

$ 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.

$ composer repo:use aliyun

Add the option --current/-c for the current project.

Reset command

If you want to discard all custom mirrors, you can use the following command:

$ composer repo:reset

Available commands

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

LICENSE

The MIT license. See MIT

You can’t perform that action at this time.