Composer registry manager that help to easily switch to the composer repository you want

Overview

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 might also like...
A small library for validating International Bankaccount Numbers (IBANs) based on the IBAN Registry provided by SWIFT

A small library for validating International Bankaccount Numbers (IBANs) based on the IBAN Registry provided by SWIFT

The fixture plugin is really helpful if you want to create some static demo data for your shopware instance.

Fixture Plugin The fixture plugin is really helpful if you want to create some static demo data for your shopware instance. Installation Just add it t

Laravel Podcast Manager is a complete podcast manager package for Laravel 5.3+ that enables you to manage RSS feeds for your favorite podcasts and listen to the episodes in a seamless UI.
Laravel Podcast Manager is a complete podcast manager package for Laravel 5.3+ that enables you to manage RSS feeds for your favorite podcasts and listen to the episodes in a seamless UI.

laravelpodcast | A Laravel podcast manager package - v0.0.8 Introduction Laravel Podcast Manager is a complete podcast manager package for Laravel 5.3

A composer package designed to help you create a JSON:API in Phalcon
A composer package designed to help you create a JSON:API in Phalcon

phalcon-json-api-package A composer package designed to help you create a JSON:API in Phalcon What happens when a PHP developer wants to create an API

An amazing Rank and Permissions Manager. The best ranks manager for PocketMine-MP.

👑 RankSystem 🔧 An amazing Rank and Permissions Manager Description: An amazing Rank and Permissions Manager. The best ranks manager for PocketMine-M

Laragon MultiPHP per App + PECL Module + Extension manager + Ini Manager
Laragon MultiPHP per App + PECL Module + Extension manager + Ini Manager

LMPA Laragon MultiPHP per App This tools allow you to run multiple PHP version per app with Laragon, so you can have multiple site running different p

Repman - PHP Repository Manager: packagist proxy and host for private packages

Repman - PHP Repository Manager Repman is a PHP repository manager. Main features: free and open source works as a proxy for packagist.org (speeds up

A plugin manager for PocketMine-MP downloads plugin from PocketMine-MP official plugin repository

oh-my-pmmp A plugin manager for PocketMine-MP Getting Started Prerequisites Your server MUST RUN the latest version of PocketMine. Installation From P

A composer plugin, to install differenty types of composer packages in custom directories outside the default composer default installation path which is in the vendor folder.

composer-custom-directory-installer A composer plugin, to install differenty types of composer packages in custom directories outside the default comp

Comments
  • 依赖包 composer-plugin-api 找不到了

    依赖包 composer-plugin-api 找不到了

    Your requirements could not be resolved to an installable set of packages.
    
      Problem 1
        - Installation request for slince/composer-registry-manager ^2.3 -> satisfiable by slince/composer-registry-manager[2.3.0].
        - slince/composer-registry-manager 2.3.0 requires composer-plugin-api ^1.1 -> no matching package found.
    
    Potential causes:
     - A typo in the package name
     - The package is not available in a stable-enough version according to your minimum-stability setting
       see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
    
    Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
    
    Installation failed, reverting ./composer.json to its original content.
    
    opened by piaoniao 1
  • 更新到最新版 crm 再执行 composer repo:ls 依旧返回上一个版本的源

    更新到最新版 crm 再执行 composer repo:ls 依旧返回上一个版本的源

    在从来没安装过 crm 的 linux 服务器上,安装 crm 一切正常

    但是,在之前安装过旧版本 crm 的 mac 电脑上,删除并重新安装 crm 再执行 composer repo:ls 依旧返回上一个版本的源

    ➜  ~ composer repo
     _____   _____        ___  ___
    /  ___| |  _  \      /   |/   |
    | |     | |_| |     / /|   /| |
    | |     |  _  /    / / |__/ | |
    | |___  | | \ \   / /       | |
    \_____| |_|  \_\ /_/        |_|
    
    Composer Repository Manager version 2.0.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
     --- ---------------- --------------------------------------
    
    opened by xiegangd 1
  • Update ProxyApplication.php

    Update ProxyApplication.php

    发布releases版本是不是需要修改一下version?不然每次更新在命令行都是2.0.0,不注意看会以为更新失败

    $ composer repo
     _____   _____        ___  ___
    /  ___| |  _  \      /   |/   |
    | |     | |_| |     / /|   /| |
    | |     |  _  /    / / |__/ | |
    | |___  | | \ \   / /       | |
    \_____| |_|  \_\ /_/        |_|
    
    Composer Repository Manager version 2.0.0
    
    opened by sy-records 0
Releases(1.2.1)
Owner
Tao
基于搜索引擎的复制粘贴工程师 PHPer & Gopher
Tao
Just the stats I want, maybe you want them too

SKCDEV Easy Digital Downloads Stats This plugin adds a new "SKCDEV EDD Stats" report tab to the EDD Reports tabs. Just the stats I want, maybe you wan

Scott Kingsley Clark 3 Sep 8, 2022
Composer Repository Manager for selling Magento 2 extension and offering composer installation for ordered packages.

Magento 2 Composer Repository Credits We got inspired by https://github.com/Genmato. Composer Repository for Magento 2 This extension works as a Magen

EAdesign 18 Dec 16, 2021
Private Composer registry for private PHP packages on AWS Serverless

Tug Tug is a Composer private registry for private PHP packages installable with Composer (1 and 2). The main idea of this project is to have an inter

Fxp 33 Oct 5, 2022
Utility that helps you switch git configurations with ease.

git-profile Utility that helps you switch git configurations with ease Preface It is possible that you have multiple git configurations. For example:

Zeeshan Ahmad 240 Jul 18, 2022
Do you want CronJob to follow the solar date?You need this package to solve this problem.

Shamsic Maybe it happened to you that you wanted to use CronJob in your project and you realized that you cannot manage the exact dates that are in th

Amin Ghaninia 5 Jul 19, 2022
Composer plugin for Repman - PHP Repository Manager

Repman Composer Plugin Composer plugin for Repman - PHP Repository Manager. Adds a mirror url for all your dependencies without need to update compose

Repman 9 Mar 14, 2022
PHP Indexer for Switch NSP

NSP Indexer PHP Indexer for Switch NSP (XCI NSZ XCZ) by proconsule and jangrewe How To Place all files into a directory on your webserver, then copy c

null 28 Dec 15, 2022
A PHP 7.4+ library to consume the Confluent Schema Registry REST API

A PHP 7.4+ library to consume the Confluent Schema Registry REST API. It provides low level functions to create PSR-7 compliant requests that can be used as well as high level abstractions to ease developer experience.

Flix.TECH 38 Sep 1, 2022
💳 WordPress/WooCoommerce Brazilian Fields in Registry

Brazilian Fields in WordPress Registry A wordpress plugin that can be used for customize your website. Brazilian fields are added to the wordpress reg

Vinicius Blazius Goulart 7 Sep 20, 2022