承接 microweber-deps/composer-installers-extender 相关项目开发

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

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

microweber-deps/composer-installers-extender

Composer 安装命令:

composer require microweber-deps/composer-installers-extender

包简介

Extend the composer/installers plugin to accept any arbitrary package type.

README 文档

README

The composer-installers-extender is a plugin for Composer that allows any package to be installed to a directory other than the default vendor/ directory within the repo on a package-by-package basis. This plugin extends the composer/installers plugin to allow any arbitrary package type to be handled by their custom installer and specified explicitly in the "installer-paths" mapping in the "extra" data property.

composer/installers has a finite set of supported package types and we recognize the need for any arbitrary package type to be installed to a specific directory other than vendor/. This plugin allows additional package types to be handled by composer/installers, benefiting from their explicit install path mapping and token replacement of package properties.

How to Use

Add oomphinc/composer-installers-extender as a dependency of your project.

composer require oomphinc/composer-installers-extender

composer/installers is a dependency of this plugin and will be automatically required as well.

To support additional package types, add an array of these types in the "extra" property in your composer.json:

	"extra": {
		"installer-types": ["library"]
	}

Then, you can add mappings for packages of these types in the same way that you would add package types that are supported by composer/installers:

  "extra": {
    "installer-types": ["library"],
    "installer-paths": {
      "special/package/": ["my/package"],
      "path/to/libraries/{$name}/": ["type:library"]
    }
  }

By default, packages that do not specify a type will be considered type library. Adding support for this type allows any of these packages to be placed in a different install path.

If a type has been added to "installer-types", the plugin will attempt to find an explicit installer path in the mapping. If there is no match either by name or by type, the default installer path for all packages will be used instead.

Please see the README for composer/installers to see the supported syntax for package and type matching as well as the supported replacement tokens in the path (e.g. {$name}).

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-05-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固