承接 ollieread/composer-local-repositories 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

ollieread/composer-local-repositories

最新稳定版本:v1.0

Composer 安装命令:

composer require ollieread/composer-local-repositories

包简介

Composer plugin that automatically loads local package repositories

README 文档

README

The composer plugin to quickly add local repositories for development purposes, without the need to update your composer.json file.

How to install

composer global require ollieread/composer-local-repositories

How to use

Add a repositories.json file to any project that you want to add a custom repository to. The file needs to contain a valid composer repositories key. For example:

repositories.json

{
  "repositories": [
    {
      "type": "path",
      "url": "../local-folder"
    }
  ]
}

During a composer install or composer update, the plugin will locate the repositories.json file; and prepend all the configured repositories. If composer finds any of the require packages inside these repositories, it will install the package from that repository instead.

Configuration

To configure the plugin, you can provide extra configuration keys under a local-repositories key in the extra section.

  • trigger-commands An array of composer commands that loads the local repositories.json file (default: install and update)
  • ignore-flags An array of flags on which to ignore the local repositories.json file (default: --no-dev and --prefer-source)
  • force-dev Whether to update the constraint of any found packages from local repositories with @dev ( default: true)

Full configuration example with default values:

global composer.json

{
  "extra": {
    "local-repositories": {
      "trigger-commands": [
        "install",
        "update"
      ],
      "ignore-flags": [
        "no-dev",
        "prefer-source"
      ],
      "force-dev": true
    }
  }
}

统计信息

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

GitHub 信息

  • Stars: 15
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-06-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固