Download the PHP package dominikb/composer-license-checker without Composer
On this page you can find all versions of the php package dominikb/composer-license-checker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dominikb/composer-license-checker
More information about dominikb/composer-license-checker
Files in dominikb/composer-license-checker
Package composer-license-checker
Short Description Utility to check for licenses of dependencies and block/allow them.
License MIT
Homepage https://github.com/dominikb/composer-license-checker
Informations about the package composer-license-checker
Composer License Checker
Quickly scan your dependencies, see what licenses they use or check in your CI that no unwanted licenses were merged.
The lookup of the summaries for every license done on https://tldrlegal.com/.
Please inform yourself in more detail about the licenses you use and do not use the provided summary as your sole information.
Installation
You can install the package via composer:
Usage
Two separate commands are provided:
./composer-license-checker check
./composer-license-checker report
Use ./composer-license-checker help
to get info about general usage or use the syntax ./composer-license-checker help COMMAND_NAME
to see more information about a specific command available.
Path to composer
By default, this tool assumes that "composer" is in your path and a valid command that will call Composer.
If that isn't the case, add the -c
or --composer
option with the path where to find Composer instead.
This tool comes with Composer installed as a dependency, so you may start with --composer ./vendor/bin/composer
, given that you are in this tool's root directory when executing a license check.
If this tool cannot find Composer, it will exit with status code 2, see below.
Exit codes
Any command returns with one of these exit codes:
- 0: Ok
- 1: Offending licenses found in check, or a problem occurred when creating a report
- 2: Internal error when executing the command, may indicate problems calling Composer internally
Dependencies without a license
Some dependencies might not have a license specified in their composer.json
.
Those will be grouped under the license none
.
You can add the imagined license none
to your allowlist or blocklist to handle those dependencies.
Testing
Code coverage reports are output to the build
folder. See .phpunit.xml.dist
for more testing configuration.
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Dominik Bauernfeind
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of composer-license-checker with dependencies
ext-json Version *
composer/composer Version ~2.2.23 || ^2.7.0
guzzlehttp/guzzle Version ^6.5.8 || ^7.4.5
psr/simple-cache Version ^1.0 || ^2.0 || ^3.0
symfony/cache Version ~4.2.12 || ^4.3.8 || ^5.2 || ^6.0 || ^7.0
symfony/console Version ^5.3 || ^6.0 || ^7.0
symfony/css-selector Version ^4.2 || ^5.2 || ^6.0 || ^7.0
symfony/dom-crawler Version ^5.2 || ^6.0 || ^7.0