Skip to content
This repository was archived by the owner on Nov 10, 2021. It is now read-only.

ticdenis/php-liccheck

Repository files navigation

PHP License Checker library

liccheck is an PHP License Checker library thanks to composer licenses command output to check composer packages listed and report license issues.

Installation

Use the package manager composer to install liccheck.

composer require --dev ticdenis/liccheck

Usage

./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"
    ]
}

Requirements

  • PHP +5.4
  • Composer +1

Contributing

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.

License

MIT

About

PHP License Checker library

Resources

License

Stars

Watchers

Forks

Packages

No packages published