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.6.0(2mo ago)1.4k193.5M↓21.2%22[1 issues](https://github.com/composer/spdx-licenses/issues)[3 PRs](https://github.com/composer/spdx-licenses/pulls)20MITPHPPHP ^7.2 || ^8.0CI passing

Since Jul 15Pushed 3d 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 3d ago

READMEChangelog (10)Dependencies (4)Versions (25)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)

```
