slince/composer-registry-manager
Composer 安装命令:
composer require slince/composer-registry-manager
包简介
Composer mirrors manager
README 文档
README
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
slince/composer-registry-manager 适用场景与选型建议
slince/composer-registry-manager 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 15.41k 次下载、GitHub Stars 达 557, 最近一次更新时间为 2017 年 07 月 07 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「composer」 「mirror」 「composer repository」 「composer mirror」 「switch composer mirror」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 slince/composer-registry-manager 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 slince/composer-registry-manager 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 slince/composer-registry-manager 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
repository php library
PHP editor extension for laravel-admin based on code-mirror
Mimeo: copy (static) assets from NPM packages into your symfony project.
Make a timeline in DynamoDB, mirror your models to timnelineformat
Laravel 5 - Repositories to the database layer
This composer plugin enables installation of GravityForms WordPress plugin and its addons.
统计信息
- 总下载量: 15.41k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 562
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-07-07