arokettu/composer-license-manager
最新稳定版本:1.2.0
Composer 安装命令:
composer require arokettu/composer-license-manager
包简介
License management plugin for Composer
README 文档
README
License management plugin for Composer.
Installation
composer require 'arokettu/composer-license-manager'
Features
The plugin is configured in the extra section of the composer.json file.
{
"extra": {
"arokettu/composer-license-manager": {
"licenses": {
"allowed": ["MIT", "LGPL-*"],
"forbidden": ["GPL-3.0", "AGPL-*"],
"allow-empty": true
},
"packages": {
"allowed": ["foo/bar", "safenamespace/*"]
},
"enforced": true
}
}
}
Scan for undesired licenses
Run composer licenses:scan to check installed packages for undesired licenses.
Policy enforcement
With "enforced": true (default setting) the plugin will prevent installation of packages with undesired licenses during composer install and composer update.
Documentation
Read full documentation here: https://sandfox.dev/php/composer-license-manager.html
Also on Read the Docs: https://composer-license-manager.readthedocs.io/
Support
Please file issues on our main repo at GitLab: https://gitlab.com/sandfox/composer-license-manager/-/issues
Feel free to ask any questions in our room on Gitter: https://gitter.im/arokettu/community
License
The library is available as open source under the terms of the MIT License.
统计信息
- 总下载量: 193.65k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 60
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-06-05