composer/spdx-licenses
composer/spdx-licenses has 1,384 GitHub stars and 22 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-08 06:19 UTC. Last push 2026-11-01.
Tools for working with the SPDX license list and validating licenses.
Measured star growth
- in 24h
- 0
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originalcomposer/spdx-licenses
SPDX (Software Package Data Exchange) licenses list and validation library.
Originally written as part of composer/composer, now extracted and made available as a stand-alone library.
Installation
Install the latest version with:
$ composer require composer/spdx-licenses
Basic Usage
<?php
use Composer\Spdx\SpdxLicenses;
$licenses = new SpdxLicenses();
// get a license by identifier
$licenses->getLicenseByIdentifier('MIT');
// get a license exception by identifier
$licenses->getExceptionByIdentifier('Autoconf-exception-3.0');
// get a license identifier by name
$licenses->getIdentifierByName('MIT License');
// check if a license is OSI approved by identifier
$licenses->isOsiApprovedByIdentifier('MIT');
// check if a license identifier is deprecated
$licenses->isDeprecatedByIdentifier('MIT');
// check if input is a valid SPDX license expression
$licenses->validate($input);
Read the specifications to find out more about valid license expressions.
Requirements
- PHP 5.3.2 is required but using the latest version of PHP is highly recommended.
License
composer/spdx-licenses is licensed under the MIT License, see the LICENSE file for details.
Source
License information is curated by SPDX. The data is pulled from the License List Data repository.
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
561,011 starspublic-apis/public-apis
A collective list of free APIs
497,254 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
443,104 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,194 stars