All Projects → madewithlove → license-checker-php

madewithlove / license-checker-php

Licence: MIT license
CLI tool to verify used licenses in composer dependencies

Programming Languages

PHP
23972 projects - #3 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to license-checker-php

php-legal-licenses
A utility to help generate a file containing information about dependencies including the full license text.
Stars: ✭ 62 (+121.43%)
Mutual labels:  composer, license, license-management
Ort
A suite of tools to assist with reviewing Open Source Software dependencies.
Stars: ✭ 446 (+1492.86%)
Mutual labels:  license, license-management
Fossology
FOSSology is an open source license compliance software system and toolkit. As a toolkit you can run license, copyright and export control scans from the command line. As a system, a database and web ui are provided to give you a compliance workflow. License, copyright and export scanners are tools used in the workflow.
Stars: ✭ 440 (+1471.43%)
Mutual labels:  license, license-management
TrialMaker.Demo
A powerful yet straight-forward library suite that provides secure trial license generation and copy-protection features for .NET applications. It also supports premium license generation for expired free-trials.
Stars: ✭ 21 (-25%)
Mutual labels:  license, license-management
awesome-open-source-licensing
Cool links, tools & papers related to Open Source Licensing
Stars: ✭ 17 (-39.29%)
Mutual labels:  license, license-management
Go Licenses
Reports on the licenses used by a Go package and its dependencies.
Stars: ✭ 263 (+839.29%)
Mutual labels:  license, license-management
Scancode Toolkit
🔎 ScanCode detects licenses, copyrights, package manifests & dependencies and more by scanning code ... to discover and inventory open source and third-party packages used in your code.
Stars: ✭ 1,134 (+3950%)
Mutual labels:  license, license-management
Lickey
software license management system
Stars: ✭ 706 (+2421.43%)
Mutual labels:  license, license-management
Truelicense
TrueLicense is an open source engine for license management on the JVM.
Stars: ✭ 94 (+235.71%)
Mutual labels:  license, license-management
Licenseplist
A license list generator of all your dependencies for iOS applications
Stars: ✭ 1,996 (+7028.57%)
Mutual labels:  license, license-management
Npm License Crawler
Analyzes license information for multiple node.js modules (package.json files) as part of your software project.
Stars: ✭ 168 (+500%)
Mutual labels:  license, license-management
vlsi-release-plugins
A set of plugins to simplify Gradle release tasks
Stars: ✭ 30 (+7.14%)
Mutual labels:  license, license-management
license-auditor
License Auditor helps you track and validate licenses inside your project.
Stars: ✭ 15 (-46.43%)
Mutual labels:  license, license-management
Licensecc
Software licensing, copy protection in C++. It has few dependencies and it's cross-platform.
Stars: ✭ 363 (+1196.43%)
Mutual labels:  license, license-management
lisense
Sensible repository licensing for Humans
Stars: ✭ 23 (-17.86%)
Mutual labels:  license, license-management
Lc
licensechecker (lc) a command line application which scans directories and identifies what software license things are under producing reports as either SPDX, CSV, JSON, XLSX or CLI Tabular output. Dual-licensed under MIT or the UNLICENSE.
Stars: ✭ 93 (+232.14%)
Mutual labels:  license, license-management
Licensed
⚖️ ✔️ licensed is an interactive command line tool to help you choose and add licenses to your projects
Stars: ✭ 220 (+685.71%)
Mutual labels:  license, license-management
SimpleLicensing
A Go Based Licensing System for Digital Rights Management
Stars: ✭ 96 (+242.86%)
Mutual labels:  license, license-management
sonarqube-licensecheck
SonarQube Licensecheck Plugin
Stars: ✭ 122 (+335.71%)
Mutual labels:  license-management
session
Aplus Framework Session Library
Stars: ✭ 170 (+507.14%)
Mutual labels:  composer

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 be verified against a list of allowed licenses to offer a way for your continuous integration pipeline to block merging when a non-verified license is being introduced to the codebase.

Installation

Installing should be a breeze thanks to composer: Note that you need PHP 8 to install the latest version (1.x). If you are using an older version of PHP (7.x), older versions can be installed (0.x).

composer require madewithlove/license-checker

Configuration

To configure a list of allowed licenses, simply create an .allowed-licences file in the root of your project (where composer.json is located). The file could look like this:

# contents of .allowed-licenses
- MIT
- BSD-3-Clause
- New BSD License

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

List used licenses

vendor/bin/license-checker used

List allowed licenses

vendor/bin/license-checker allowed

Check licenses

vendor/bin/license-checker check

Automatically generate configuration

This command will automatically generate an .allowed-licenses configuration based on the currently used licenses.

vendor/bin/license-checker generate-config

Excluding development dependencies

Passing the --no-dev option to the CLI commands will scope all checks to production dependencies only. Checking production and development dependencies against separate configuration files is possible by passing options:

vendor/bin/license-checker check --no-dev --filename .allowed-licenses-production
vendor/bin/license-checker check --filename .allowed-licenses-including-dev
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].