Download the PHP package lendable/composer-license-checker without Composer
On this page you can find all versions of the php package lendable/composer-license-checker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lendable/composer-license-checker
More information about lendable/composer-license-checker
Files in lendable/composer-license-checker
Package composer-license-checker
Short Description Composer license checker
License MIT
Informations about the package composer-license-checker
Composer License Checker
This library provides tooling to check licensing of dependencies against a set of rules to ensure compliance with open source licenses and minimize legal risk. It helps you to keep track of licenses of dependencies in use and make informed decisions on their usage.
Installation
Usage
Create a configuration file in your project root, .allowed-licenses.php
(or you can use the option -a / --allow-file
to specify the location of the configuration).
It is suggested you build this into your CI pipeline to automate checking it.
Licensing information providers
This tool can use two different sources for retrieving licensing information: using the composer licenses
command and parsing the installed.json
file created by Composer.
Using the installed.json
provider (default)
Specify --provider-id=json
.
The tool will parse the installed.json
file created by Composer which has all the relevant information. This does not require Composer to be installed in the environment the tool is executed within. This file is internal to Composer however, so there is the potential that the schema may change in the future. If you experience issues, try using the composer licenses
provider and report the issue.
Using composer licenses
provider
Specify --provider-id=licenses
.
The composer licenses
command provides a (potentially) more stable API for retrieving licensing information. This however requires the tool to execute composer
so it must be installed in the environment the tool is run within.
All versions of composer-license-checker with dependencies
composer-runtime-api Version ^2.2
symfony/console Version ^5.4 || ^6.0 || ^7.0
symfony/process Version ^5.4.46 || ^6.4.14 || ^7.1.7