liccheck is an PHP License Checker library thanks to composer licenses
command output to check composer packages listed and report license issues.
Use the package manager composer to install liccheck.
composer require --dev ticdenis/liccheck
./vendor/bin/liccheck -s license_strategy.json
Here an example of a license_strategy.json
file:
{
"Licenses": {
"authorized_licenses": [
"BSD-3-Clause",
"MIT"
],
"unauthorized_licenses": [
"propietary"
]
},
"Authorized Packages": [
"ticdenis/liccheck"
]
}
- PHP +5.4
- Composer +1
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Based on dhatim/python-license-check
.