{"id":15481644,"url":"https://github.com/madewithlove/license-checker-php","last_synced_at":"2025-05-12T14:53:06.128Z","repository":{"id":40409843,"uuid":"244836148","full_name":"madewithlove/license-checker-php","owner":"madewithlove","description":"CLI tool to verify used licenses in composer dependencies","archived":false,"fork":false,"pushed_at":"2025-04-25T09:10:53.000Z","size":165,"stargazers_count":49,"open_issues_count":0,"forks_count":5,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-04-25T10:25:02.743Z","etag":null,"topics":["cli","composer","hacktoberfest","license","license-management","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/madewithlove.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-04T07:33:44.000Z","updated_at":"2025-04-25T09:09:01.000Z","dependencies_parsed_at":"2024-06-18T18:28:34.253Z","dependency_job_id":null,"html_url":"https://github.com/madewithlove/license-checker-php","commit_stats":{"total_commits":167,"total_committers":5,"mean_commits":33.4,"dds":"0.22155688622754488","last_synced_commit":"7cf1e86f00700895290b91e9f6eca1f7f4dbac6e"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madewithlove%2Flicense-checker-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madewithlove%2Flicense-checker-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madewithlove%2Flicense-checker-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madewithlove%2Flicense-checker-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/madewithlove","download_url":"https://codeload.github.com/madewithlove/license-checker-php/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253759174,"owners_count":21959713,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","composer","hacktoberfest","license","license-management","php"],"created_at":"2024-10-02T05:05:19.985Z","updated_at":"2025-05-12T14:53:06.120Z","avatar_url":"https://github.com/madewithlove.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CLI Licence checker for composer dependencies\nThis library offers a simple CLI tool to show the licenses used by composer dependencies in your project.\nThese licenses can be verified against a list of allowed licenses to offer a way for your continuous integration\npipeline to block merging when a non-verified license is being introduced to the codebase.\n\n## Installation\nInstalling should be a breeze thanks to `composer`:\nNote that you need PHP 8.3 to install the latest version (2.x).\nIf you are using an older version of PHP, older versions can be installed.\n\n```\ncomposer require madewithlove/license-checker\n```\n\n## Configuration\nTo configure a list of allowed licenses, simply create an `.allowed-licences` file in the root of your project (where `composer.json` is located).\nThe file could look like this:\n```\n# contents of .allowed-licenses\n- MIT\n- BSD-3-Clause\n- New BSD License\n```\n\nIt's possible to use a custom configuration file by passing the `--filename` (or `-f`) option to the CLI commands.\n\n## Usage\nThese are the different CLI commands\n\n### List used licenses\n```\nvendor/bin/license-checker used\n```\n\n### List allowed licenses\n```\nvendor/bin/license-checker allowed\n```\n\n### Check licenses\n```\nvendor/bin/license-checker check\n```\n\n### Automatically generate configuration\nThis command will automatically generate an `.allowed-licenses` configuration based on the currently used licenses.\n```\nvendor/bin/license-checker generate-config\n```\n\n### Excluding development dependencies\nPassing the `--no-dev` option to the CLI commands will scope all checks to production dependencies only.\nChecking production and development dependencies against separate configuration files is possible by passing options:\n```\nvendor/bin/license-checker check --no-dev --filename .allowed-licenses-production\nvendor/bin/license-checker check --filename .allowed-licenses-including-dev\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadewithlove%2Flicense-checker-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmadewithlove%2Flicense-checker-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadewithlove%2Flicense-checker-php/lists"}