{"repo":"madewithlove/license-checker-php","free":true,"listed":false,"github":"https://github.com/madewithlove/license-checker-php","clone":"git clone https://github.com/madewithlove/license-checker-php.git","description":"CLI tool to verify used licenses in composer dependencies","language":"PHP","stars":54,"topics":["composer","license","license-management","php","cli","hacktoberfest"],"license":"MIT","category":"cli-tools","readme_excerpt":"CLI Licence checker for composer dependencies This library offers a simple CLI tool to show the licenses used by composer dependencies in your project. These licenses can be verified against a list of allowed (or denied) licenses to offer a way for your continuous integration pipeline to block merging when a non-verified license is being introduced to the codebase. Upgrading from 2.x Version 3.x introduces a new structured configuration format. Run the migration command to upgrade: This converts your .allowed-licenses file to the new .license-checker.yml format. See full migration details below. Installation Installing should be a breeze thanks to composer : Note that you need PHP 8.4 to install the latest version (3.x). Configuration Create a .license-checker.yml file in the root of your project (where composer.json is located). Allowlist mode Only the listed licenses are permitted. Any dependency using a license not on this list will be flagged: Denylist mode All licenses are permitted except the ones listed. Use this when you want to block specific licenses: Note: allowed and denied are mutually exclusive — you must use one or the other, not both. It's possible to use a custom configuration file by passing the --filename (or -f ) option to the CLI commands. Usage These are the different CLI commands: Check licenses List used licenses List configured licenses Shows the configured allowed or denied licenses: Count used licenses Automatically generate configuration This comma","default_branch":null,"files":null,"tree":[],"storefront":"/r/madewithlove","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/madewithlove/license-checker-php/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}