定制 techcoil/composer-plugin-local-repo 二次开发

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

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

techcoil/composer-plugin-local-repo

最新稳定版本:0.0.2

Composer 安装命令:

composer require techcoil/composer-plugin-local-repo

包简介

A composer plugin to install packages from a local directory with ease

README 文档

README

Composer plugin to help treating local repositories as packages.
Make use of composer's path repository behind the scenes.

Installation

Add the following to your composer.json file:

Install the plugin with

$ composer require techcoil/composer-plugin-local-repo
{
    "require": {
        "techcoil/composer-plugin-local-repo": "*"
    },
    ...
    "config": {
      ...
      "allow-plugins": {
        "techcoil/composer-plugin-local-repo": true
      }
    }
}

Config

Config overrides should be placed inside extra.local-repo in your composer.json file.

Key Description Default
paths An array of paths to search for packages. ["src"]
depth The depth of folders to search for packages. 1
symlink Whether to symlink the packages or copy them.
See https://getcomposer.org/doc/05-repositories.md#path
true
ignore An array of folder patterns to ignore. []

Example

// composer.json
{
     ...
     "extra": {
          "local-repo": {
                "paths": ["src", "packages"],
                "depth": 2,
                "symlink": false,
                "ignore": ["*_test", "**/test/*"]
          }
     }
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-01-10