guest-one/composer-require-ext 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

guest-one/composer-require-ext

Composer 安装命令:

composer require guest-one/composer-require-ext

包简介

This Composer plugin adds "require-ext" command which makes using of private repositories and packages smoother.

README 文档

README

This plugin is useful for teams working on closed projects big enough to split code into packages, but not big enough to bother of full-functional repository (Satis or similar).

This Composer plugin adds "require-ext" command which makes using of private repositories and packages smoother.

Provided "require-ext" command works exactly the same way normal Composer "require" do, but it understands VCS URLs as well as package names and automatically adds them to repositories section of project's composer.json

Usage

Add the plugin to your project by:

composer require guest-one/composer-require-ext --dev

Now you can just add a package by URL from repository which is not indexed by Packagist/Satis:

composer require-ext https://gitflic.ru/project/guest-one/tool-cbr-ru-currency-updater.git

Normally you must manually edit composer.json to achive the same effect.

Special options

--from-repo (-F)

Special option to specify exact package version and repository URL in one command:

composer require-ext guest-one/tool-cbr.ru-currency-updater --from-repo https://gitflic.ru/project/guest-one/tool-cbr-ru-currency-updater.git

--insecure (-K)

Allows using insecure (http) URL for repositores:

composer require-ext -K http://gitlab.localdomain/public/my-package.git

This option changes secure-http to false in project's composer.json if you are requiring insecure URL.

Troubleshooting

Problem: Old Composer verson

Error message aftrer composer require guest-one/composer-require-ext

  - guest-one/composer-require-ext x.x.x requires composer-plugin-api ^2.0 -> no matching package found.

Update Composer to solve this issue:

 composer self-update

统计信息

  • 总下载量: 10.19k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-09-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固