{"id":20331105,"url":"https://github.com/comcast/php-legal-licenses","last_synced_at":"2026-04-20T05:01:02.242Z","repository":{"id":25798815,"uuid":"106569641","full_name":"Comcast/php-legal-licenses","owner":"Comcast","description":"A utility to help generate a file containing information about dependencies including the full license text.","archived":false,"fork":false,"pushed_at":"2024-11-07T19:24:23.000Z","size":25248,"stargazers_count":76,"open_issues_count":2,"forks_count":26,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-05-12T19:48:55.495Z","etag":null,"topics":["composer","composer-package","legal","license","license-management","licenses","php","php-library"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/comcast/php-legal-licenses","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Comcast.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2017-10-11T15:04:07.000Z","updated_at":"2025-04-11T08:35:21.000Z","dependencies_parsed_at":"2024-06-18T14:01:49.471Z","dependency_job_id":"ca16c85b-2bb6-4fab-bd48-557442f36cb3","html_url":"https://github.com/Comcast/php-legal-licenses","commit_stats":{"total_commits":37,"total_committers":11,"mean_commits":"3.3636363636363638","dds":0.5135135135135135,"last_synced_commit":"3ebbbc4a9b0bb9c2d43434455aee077ee22ada65"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Comcast%2Fphp-legal-licenses","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Comcast%2Fphp-legal-licenses/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Comcast%2Fphp-legal-licenses/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Comcast%2Fphp-legal-licenses/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Comcast","download_url":"https://codeload.github.com/Comcast/php-legal-licenses/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254459088,"owners_count":22074605,"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":["composer","composer-package","legal","license","license-management","licenses","php","php-library"],"created_at":"2024-11-14T20:18:46.397Z","updated_at":"2026-04-20T05:00:57.089Z","avatar_url":"https://github.com/Comcast.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://styleci.io/repos/106569641\"\u003e\u003cimg src=\"https://styleci.io/repos/106569641/shield\" alt=\"StyleCI Status\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/comcast/php-legal-licenses\"\u003e\u003cimg src=\"https://poser.pugx.org/comcast/php-legal-licenses/d/total.svg\" alt=\"Total Downloads\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/comcast/php-legal-licenses\"\u003e\u003cimg src=\"https://poser.pugx.org/comcast/php-legal-licenses/v/stable.svg\" alt=\"Latest Stable Version\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/comcast/php-legal-licenses\"\u003e\u003cimg src=\"https://poser.pugx.org/comcast/php-legal-licenses/license.svg\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n# PHP Legal Licenses\n\nLegal Licenses is a utility to help generate a single text file containing all of the important information about a project's dependencies. In some organizations, the use of Open Source Software (OSS) is strictly controlled and audited, and requires having every OSS library simply documented.\n\nThis utility will generate a `licenses.md` file in the root of your project that contains a list of all dependencies, the currently installed version, commit sha, its description, homepage, list of licenses, and full license text if it is present in the dependency source code directly. It receives this information from the `composer.lock` file, so you must have run a `composer update` or `composer install` at least once in order to use this utility.\n\n## Installation\n\nIf you need a utility such as this for your place of business, chances are, you will need it for more than a single project. Therefore, the easiest and reccommeded way to install this utility is as a global composer package:\n\n```php\ncomposer global require comcast/php-legal-licenses\n```\n\n## Usage\n\nIf you installed php-legal-licenses globally via composer, you should be able to run the script in any of your projects. Note, you must have run either `composer update` or `composer install` at least once, to create a `composer.lock` file.\n\n```\n$ cd /path/to/my/project\n$ which php-legal-licenses\n\u003e ~/.composer/vendor/bin/php-legal-licenses\n$ php-legal-licenses generate\n\u003e Generating Licenses file...\n\u003e Done!\n```\n\nYou can also hide dependency version with `--hide-version` option:\n\n```\n$ php-legal-licenses generate --hide-version\n```\n\nYou can output csv file with `--csv` option:\n\n```\n$ php-legal-licenses generate --csv\n```\n\nOr use both option:\n\n```\n$ php-legal-licenses generate --hide-version --csv\n```\n\n## Example Output\nHere is a snippet of the licenses file that would be generated for this utility itself:\n\n```\n# Project Licenses\nThis file was generated by the Legal Licenses utility. It contains the name, version and commit sha, description, homepage, and license information for every dependency in this project.\n\n## Dependencies\n\n### psr/log (Version 1.0.2 | 4ebe3a8)\nCommon interface for logging libraries\nHomepage: https://github.com/php-fig/log\nLicenses Used: MIT\nCopyright (c) 2012 PHP Framework Interoperability Group\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\n### symfony/console (Version v3.3.6 | b087823)\nSymfony Console Component\nHomepage: https://symfony.com\nLicenses Used: MIT\n\n...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomcast%2Fphp-legal-licenses","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomcast%2Fphp-legal-licenses","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomcast%2Fphp-legal-licenses/lists"}