PHPackages                             composer/spdx-licenses - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. composer/spdx-licenses

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

composer/spdx-licenses
======================

SPDX licenses list and validation library.

1.5.9(1y ago)1.4k184.2M—0.4%22[1 issues](https://github.com/composer/spdx-licenses/issues)20MITPHPPHP ^5.3.2 || ^7.0 || ^8.0CI passing

Since Jul 15Pushed 1mo ago6 watchersCompare

[ Source](https://github.com/composer/spdx-licenses)[ Packagist](https://packagist.org/packages/composer/spdx-licenses)[ Fund](https://packagist.com)[ GitHub Sponsors](https://github.com/composer)[ RSS](/packages/composer-spdx-licenses/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (22)Used By (20)

composer/spdx-licenses
======================

[](#composerspdx-licenses)

SPDX (Software Package Data Exchange) licenses list and validation library.

Originally written as part of [composer/composer](https://github.com/composer/composer), now extracted and made available as a stand-alone library.

[![Continuous Integration](https://github.com/composer/spdx-licenses/workflows/Continuous%20Integration/badge.svg?branch=main)](https://github.com/composer/spdx-licenses/actions)

Installation
------------

[](#installation)

Install the latest version with:

```
$ composer require composer/spdx-licenses
```

Basic Usage
-----------

[](#basic-usage)

```
