{"id":13803619,"url":"https://github.com/slince/composer-registry-manager","last_synced_at":"2025-05-16T03:02:18.891Z","repository":{"id":57053331,"uuid":"84933609","full_name":"slince/composer-registry-manager","owner":"slince","description":":hammer_and_wrench: :hammer: Composer registry manager that help to easily switch to the  composer repository you want. ","archived":false,"fork":false,"pushed_at":"2023-03-04T08:50:59.000Z","size":315,"stargazers_count":563,"open_issues_count":4,"forks_count":48,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-05-09T12:42:21.398Z","etag":null,"topics":["composer","composer-plugin","composer-registry-manager","mirror","repository","switch-repository"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/slince.png","metadata":{"files":{"readme":"README-zh_CN.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":"https://raw.githubusercontent.com/slince/composer-registry-manager/master/.github/donate.png"}},"created_at":"2017-03-14T10:00:35.000Z","updated_at":"2025-04-24T03:56:40.000Z","dependencies_parsed_at":"2024-05-02T15:58:09.776Z","dependency_job_id":"113aa848-86f9-465d-8970-fcea588b9fa0","html_url":"https://github.com/slince/composer-registry-manager","commit_stats":{"total_commits":94,"total_committers":8,"mean_commits":11.75,"dds":0.2021276595744681,"last_synced_commit":"217654df0e0f8a9b5494e0f7d55d46e9b024ecd3"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slince%2Fcomposer-registry-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slince%2Fcomposer-registry-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slince%2Fcomposer-registry-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slince%2Fcomposer-registry-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slince","download_url":"https://codeload.github.com/slince/composer-registry-manager/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254459077,"owners_count":22074604,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["composer","composer-plugin","composer-registry-manager","mirror","repository","switch-repository"],"created_at":"2024-08-04T01:00:36.271Z","updated_at":"2025-05-16T03:02:18.800Z","avatar_url":"https://github.com/slince.png","language":"PHP","funding_links":["https://raw.githubusercontent.com/slince/composer-registry-manager/master/.github/donate.png"],"categories":["Plugins","PHP","PHP (184)"],"sub_categories":["Support"],"readme":"# CRM - Composer源管理工具\n\n[![Build Status](https://img.shields.io/github/workflow/status/slince/composer-registry-manager/test?style=flat-square)](https://github.com/slince/composer-registry-manager/actions)\n[![Coverage Status](https://img.shields.io/codecov/c/github/slince/composer-registry-manager.svg?style=flat-square)](https://codecov.io/github/slince/composer-registry-manager)\n[![Total Downloads](https://img.shields.io/packagist/dt/slince/composer-registry-manager.svg?style=flat-square)](https://packagist.org/packages/slince/composer-registry-manager)\n[![Latest Stable Version](https://img.shields.io/packagist/v/slince/composer-registry-manager.svg?style=flat-square\u0026label=stable)](https://packagist.org/packages/slince/composer-registry-manager)\n[![Scrutinizer](https://img.shields.io/scrutinizer/g/slince/composer-registry-manager.svg?style=flat-square)](https://scrutinizer-ci.com/g/slince/composer-registry-manager/?branch=master)\n\n由于composer在国内下载速度非常慢，大家都习惯使用中国镜像，如果正在使用的镜像没有更新或者出现故障你可以使用Composer Registry Manager帮助你轻松地切换到另外一个镜像。\n默认带了一些镜像,当然你也可以添加新的镜像。\n\n## 安装\n\n使用composer安装，执行下面命令\n\n```bash\n$ composer global require slince/composer-registry-manager\n```\n\n## 基本用法\n\n### 列出所有可使用的镜像\n\n```bash\n$ composer repo:ls\n\n --- ------------- ------------------------------------------------ ------------------------------\n      composer      https://packagist.org                            Europe, Canada and Singapore\n      aliyun        https://mirrors.aliyun.com/composer              China\n      tencent       https://mirrors.cloud.tencent.com/composer       China\n  *   huawei        https://mirrors.huaweicloud.com/repository/php   China\n      cnpkg         https://php.cnpkg.org                            China\n      sjtug         https://packagist.mirrors.sjtug.sjtu.edu.cn      China\n      phpcomposer   https://packagist.phpcomposer.com                China\n      kkame         https://packagist.kr                             South Korea\n      hiraku        https://packagist.jp                             Japan\n      webysther     https://packagist.com.br                         Brazil\n      solidworx     https://packagist.co.za                          South Africa\n      indra         https://packagist.phpindonesia.id                Indonesia\n      varun         https://packagist.in                             India\n --- ------------- ------------------------------------------------ ------------------------------\n```\n标“*”表示当前正在使用的源;\n\n你可以使用 `--location xx` 按地区过滤\n\n```bash\n$ composer repo:ls --location China\n```\n\n### 切换镜像\n\n```bash\n$ composer repo:use\n\nPlease select your favorite repository (defaults to composer) [composer]:\n  [0 ] composer\n  [1 ] aliyun\n  [2 ] tencent\n  [3 ] huawei\n  [4 ] cnpkg\n  [5 ] sjtug\n  [6 ] phpcomposer\n  [7 ] kkame\n  [8 ] hiraku\n  [9 ] webysther\n  [10] solidworx\n  [11] indra\n  [12] varun\n\u003e\n```\n你也可以直接追加镜像名称来跳过选择\n\n```bash\n$ composer repo:use aliyun\n```\n\n添加选项 `--current/-c` 为当前项目切换源，默认是修改全局的源。\n\n### 重置命令\n\n如果你想丢弃所有自定义的镜像源，你可以使用下面命令：\n\n```bash\n$ composer repo:reset\n```\n\n### 所有命令\n\n执行下面命令查看\n\n```bash\n$ composer repo\n  _____   _____        ___  ___\n /  ___| |  _  \\      /   |/   |\n | |     | |_| |     / /|   /| |\n | |     |  _  /    / / |__/ | |\n | |___  | | \\ \\   / /       | |\n \\_____| |_|  \\_\\ /_/        |_|\n \n Composer Repository Manager version 2.0.0\n \n Usage:\n   command [options] [arguments]\n \n Options:\n   -h, --help            Display this help message\n   -q, --quiet           Do not output any message\n   -V, --version         Display this application version\n       --ansi            Force ANSI output\n       --no-ansi         Disable ANSI output\n   -n, --no-interaction  Do not ask any interactive question\n   -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug\n \n Available commands for the \"repo\" namespace:\n   repo:add     Creates a repository\n   repo:ls      List all available repositories\n   repo:remove  Remove a repository\n   repo:use     Change current repository\n ```\n\n## LICENSE\n\nThe MIT license. See [MIT](https://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslince%2Fcomposer-registry-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslince%2Fcomposer-registry-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslince%2Fcomposer-registry-manager/lists"}