定制 metalinspired/multi-composer 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

metalinspired/multi-composer

最新稳定版本:1.0.1

Composer 安装命令:

composer require metalinspired/multi-composer

包简介

Composer plugin that helps with dependencies for projects that have multiple composer instances

README 文档

README

If you're stuck in situation where a project has to have two (or more) composer instances, and they require (and install) same packages this plugin will help you by reusing installed packages from one of those instances.

It achieves this by reading the composer.lock and generating (and injecting) a list of provided and conflicting packages.

Installation

  1. Add your source composer instance as repository to composer.json

    "repositories": [
       {
         "type": "path",
         "url": "../where_other_composer_is_installed",
         "options": {
           "symlink": true
         }
       }
    ]
    
  2. Install this plugin (confirm with "y" that you trust and want to enable the plugin)

    composer require metalinspired/multi-composer
    
  3. Configure the plugin

    "extra": {
      "multi-composer": [
        {
          "package": "your-vendor-name/your-project-name:dev-main",
          "autoload_psr-4": false,
          "skip_dev": false
        }
      ]
    }
    
  4. Require your source composer instance

    composer require your-vendor-name/your-project-name:dev-main
    

Configuration options

package: String with name and version of your source composer instance. This must be provided in the same form as when requiring your source composer instance (project-name:version)

autoload_psr-4: Optional boolean indicating whether to include PSR-4 namespace(s) defined in your source composer instance.

Note: This only works when you install (request) your source composer instance. Changing the value of this and updating will have no effect. You will have to remove and require again (reinstall does not work) your source composer instance.

skip_dev: Optional boolean indicating should dev dependencies be skipped. This is useful if your source composer instance has same dev requirements but does not have them installed.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-12-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固