PHPackages                             slince/composer-registry-manager - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. slince/composer-registry-manager

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

slince/composer-registry-manager
================================

Composer mirrors manager

2.3.1(5y ago)56314.9k↓39.8%47[4 issues](https://github.com/slince/composer-registry-manager/issues)MITPHPPHP &gt;=7.2.5

Since Mar 14Pushed 3y ago11 watchersCompare

[ Source](https://github.com/slince/composer-registry-manager)[ Packagist](https://packagist.org/packages/slince/composer-registry-manager)[ Fund](https://raw.githubusercontent.com/slince/composer-registry-manager/master/.github/donate.png)[ RSS](/packages/slince-composer-registry-manager/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (11)Used By (0)

CRM - Composer Registry Manager
===============================

[](#crm---composer-registry-manager)

[![Build Status](https://camo.githubusercontent.com/c7fd9556b7274e688a6ec15e6813b8dfb5230676cbe0befa750acf6107b6a60d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f736c696e63652f636f6d706f7365722d72656769737472792d6d616e616765722f746573742e796d6c3f7374796c653d666c61742d737175617265)](https://github.com/slince/composer-registry-manager/actions)[![Coverage Status](https://camo.githubusercontent.com/e2c141129e7bb65ff1e18c82c12b5dcb9a1ecefa082c718780ae099cb9231697/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f736c696e63652f636f6d706f7365722d72656769737472792d6d616e616765722e7376673f7374796c653d666c61742d737175617265)](https://codecov.io/github/slince/composer-registry-manager)[![Total Downloads](https://camo.githubusercontent.com/96596ef9713860501ad768aaa20b885ce858f4f8c22a65c348172130f8ca9923/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736c696e63652f636f6d706f7365722d72656769737472792d6d616e616765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/slince/composer-registry-manager)[![Latest Stable Version](https://camo.githubusercontent.com/e27d27eb83df26757960859bb6618573c1ed55f3f164fc1cf7c1ff88477477a5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736c696e63652f636f6d706f7365722d72656769737472792d6d616e616765722e7376673f7374796c653d666c61742d737175617265266c6162656c3d737461626c65)](https://packagist.org/packages/slince/composer-registry-manager)[![Scrutinizer](https://camo.githubusercontent.com/b903858d216fd8d02dad42e8fbe4da133f1159350d90041adc3fb41520dfb9f6/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f736c696e63652f636f6d706f7365722d72656769737472792d6d616e616765722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/slince/composer-registry-manager/?branch=master)

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

[简体中文](./README-zh_CN.md)

Installation
------------

[](#installation)

Install via composer

```
$ composer global require slince/composer-registry-manager ^2.0
```

Example
-------

[](#example)

### List all available repositories

[](#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

[](#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

[](#reset-command)

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

```
$ composer repo:reset
```

### Available commands

[](#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
-------

[](#license)

The MIT license. See [MIT](https://opensource.org/licenses/MIT)

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity47

Moderate usage in the ecosystem

Community23

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 84.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~150 days

Recently: every ~242 days

Total

10

Last Release

1992d ago

Major Versions

1.2.1 → 2.0.02018-04-04

PHP version history (3 changes)1.0.0PHP &gt;=5.5.9

1.2.0PHP &gt;=5.6.0

2.3.1PHP &gt;=7.2.5

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3785826?v=4)[Tao](/maintainers/slince)[@slince](https://github.com/slince)

---

Top Contributors

[![slince](https://avatars.githubusercontent.com/u/3785826?v=4)](https://github.com/slince "slince (85 commits)")[![sy-records](https://avatars.githubusercontent.com/u/33931153?v=4)](https://github.com/sy-records "sy-records (4 commits)")[![webysther](https://avatars.githubusercontent.com/u/750007?v=4)](https://github.com/webysther "webysther (4 commits)")[![zingimmick](https://avatars.githubusercontent.com/u/26657141?v=4)](https://github.com/zingimmick "zingimmick (3 commits)")[![lifesign](https://avatars.githubusercontent.com/u/2189610?v=4)](https://github.com/lifesign "lifesign (2 commits)")[![benhuang1024](https://avatars.githubusercontent.com/u/9276806?v=4)](https://github.com/benhuang1024 "benhuang1024 (2 commits)")[![coreyee](https://avatars.githubusercontent.com/u/16696867?v=4)](https://github.com/coreyee "coreyee (1 commits)")

---

Tags

composercomposer-plugincomposer-registry-managermirrorrepositoryswitch-repositorycomposermirrorcomposer repositorycomposer mirrorswitch composer mirror

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/slince-composer-registry-manager/health.svg)

```
[![Health](https://phpackages.com/badges/slince-composer-registry-manager/health.svg)](https://phpackages.com/packages/slince-composer-registry-manager)
```

###  Alternatives

[ergebnis/composer-normalize

Provides a composer plugin for normalizing composer.json.

1.1k37.3M2.1k](/packages/ergebnis-composer-normalize)[bamarni/composer-bin-plugin

No conflicts for your bin dependencies

52722.0M859](/packages/bamarni-composer-bin-plugin)[pyrech/composer-changelogs

Display changelogs after each composer update

5904.0M25](/packages/pyrech-composer-changelogs)[helhum/dotenv-connector

Makes it possible to set environment variables for composer projects.

1594.6M34](/packages/helhum-dotenv-connector)[mnsami/composer-custom-directory-installer

A composer plugin, to help install packages of different types in custom paths.

1395.0M52](/packages/mnsami-composer-custom-directory-installer)[ffraenz/private-composer-installer

A composer install helper for private packages

2331.7M5](/packages/ffraenz-private-composer-installer)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
