{"id":14985348,"url":"https://github.com/composer/spdx-licenses","last_synced_at":"2025-05-14T01:03:06.373Z","repository":{"id":34995919,"uuid":"39083358","full_name":"composer/spdx-licenses","owner":"composer","description":"Tools for working with the SPDX license list and validating licenses.","archived":false,"fork":false,"pushed_at":"2024-08-26T15:22:11.000Z","size":176,"stargazers_count":1393,"open_issues_count":1,"forks_count":22,"subscribers_count":9,"default_branch":"main","last_synced_at":"2024-10-29T10:24:15.804Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/composer.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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":"2015-07-14T15:27:19.000Z","updated_at":"2024-10-28T09:33:33.000Z","dependencies_parsed_at":"2024-06-18T10:51:16.798Z","dependency_job_id":"01be8c0b-a0b8-4a66-874e-6623c8f790d6","html_url":"https://github.com/composer/spdx-licenses","commit_stats":{"total_commits":141,"total_committers":21,"mean_commits":6.714285714285714,"dds":0.475177304964539,"last_synced_commit":"614a1b86ff628ca7e0713f733ee09f94569548b0"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/composer%2Fspdx-licenses","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/composer%2Fspdx-licenses/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/composer%2Fspdx-licenses/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/composer%2Fspdx-licenses/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/composer","download_url":"https://codeload.github.com/composer/spdx-licenses/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247927406,"owners_count":21019526,"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":[],"created_at":"2024-09-24T14:10:44.623Z","updated_at":"2025-04-08T21:18:47.499Z","avatar_url":"https://github.com/composer.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"composer/spdx-licenses\n======================\n\nSPDX (Software Package Data Exchange) licenses list and validation library.\n\nOriginally written as part of [composer/composer](https://github.com/composer/composer),\nnow extracted and made available as a stand-alone library.\n\n[![Continuous Integration](https://github.com/composer/spdx-licenses/workflows/Continuous%20Integration/badge.svg?branch=main)](https://github.com/composer/spdx-licenses/actions)\n\nInstallation\n------------\n\nInstall the latest version with:\n\n```bash\n$ composer require composer/spdx-licenses\n```\n\nBasic Usage\n-----------\n\n```php\n\u003c?php\n\nuse Composer\\Spdx\\SpdxLicenses;\n\n$licenses = new SpdxLicenses();\n\n// get a license by identifier\n$licenses-\u003egetLicenseByIdentifier('MIT');\n\n// get a license exception by identifier\n$licenses-\u003egetExceptionByIdentifier('Autoconf-exception-3.0');\n\n// get a license identifier by name\n$licenses-\u003egetIdentifierByName('MIT License');\n\n// check if a license is OSI approved by identifier\n$licenses-\u003eisOsiApprovedByIdentifier('MIT');\n\n// check if a license identifier is deprecated\n$licenses-\u003eisDeprecatedByIdentifier('MIT');\n\n// check if input is a valid SPDX license expression\n$licenses-\u003evalidate($input);\n```\n\n\u003e Read the [specifications](https://spdx.org/specifications)\n\u003e to find out more about valid license expressions.\n\nRequirements\n------------\n\n* PHP 5.3.2 is required but using the latest version of PHP is highly recommended.\n\nLicense\n-------\n\ncomposer/spdx-licenses is licensed under the MIT License, see the LICENSE file for details.\n\nSource\n------\n\nLicense information is curated by [SPDX](https://spdx.org/). The data is pulled from the\n[License List Data](https://github.com/spdx/license-list-data) repository.\n\n* [Licenses](https://spdx.org/licenses/index.html)\n* [License Exceptions](https://spdx.org/licenses/exceptions-index.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomposer%2Fspdx-licenses","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomposer%2Fspdx-licenses","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomposer%2Fspdx-licenses/lists"}