License management plugin for Composer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Anton Smirnov a376d95b93 Ignore PHPUnit result cache 3 months ago
docs Document shortcut config 6 months ago
sandbox Do not remove root package from the pool 6 months ago
src Shortcut config 6 months ago
tests Shortcut config 6 months ago
.gitattributes Tests 6 months ago
.gitignore Ignore PHPUnit result cache 3 months ago
.gitlab-ci.yml Run tests in CI 6 months ago Trailing space 6 months ago Add license 6 months ago Move installation above 6 months ago
composer.json Declare docs 6 months ago
phpcs.xml Tests 6 months ago
phpunit.xml Canonicalize attribute order 5 months ago
psalm.xml Tests 6 months ago

Composer License Manager

Packagist Packagist Gitlab pipeline status

License management plugin for Composer.


composer require 'arokettu/composer-license-manager'


The plugin is configured in the extras section of the composer.json file.

    "extras": {
        "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.


Read full documentation here:

Also on Read the Docs:


Please file issues on our main repo at GitLab:

Feel free to ask any questions in our room on Gitter:


The library is available as open source under the terms of the MIT License.