metasyntactical/composer-plugin-license-check 问题修复 & 功能扩展

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

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

metasyntactical/composer-plugin-license-check

最新稳定版本:2.3.0

Composer 安装命令:

composer require metasyntactical/composer-plugin-license-check

包简介

Plugin for Composer to restrict installation of packages to valid licenses.

README 文档

README

This composer plugin allows to define a white- and/or blacklist of licenses packages which will be installed in a project will be validated against. If a forbidden license is found in a package the installation of the particular package will be failed.

Additionally a new composer command check-licenses is provided to list all packages in the dependencies including their license and if it is allowed to use.

How to install

Installation procedure follows the general installation process of packages with composer.

Run composer require metasyntactical/composer-plugin-license-check to add the package to the composer.json and install the package.

How to use

The composer plugin reacts on extra variables in the extra-section of the composer.json.

{
  "extra": {
    "metasyntactical/composer-plugin-license-check": {
      "allow-list": [],
      "deny-list": [],
      "allowed-packages": {}
    }
  }
}

Just specify the allowed or forbidden licenses as array. Use the license identifiers allowed/used in the version-property of the composer.json to be compatible with the general usage.

One may specify additional packages which are allowed despite of license violations. As key the package name has to be used (similar to require and require-dev) and it allows for specifying semantic versioning constraints as value (which currently is not checked!).

Important Note: This plugin is licensed under MIT license. Even if you forbid to use MIT licensed packages in your project the plugin itself is the only package it would not complain about (otherwise further checking would not work obviously).

统计信息

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

GitHub 信息

  • Stars: 5
  • Watchers: 2
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-05-28