Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 18, 2024 via composer

composer/spdx-licenses 1.5.7

SPDX licenses list and validation library.
Package summary
Share
0
issues
1
license
1
MIT
Package created
15 Jul 2015
Version published
23 May 2022
Maintainers
3
Total deps
1
Direct deps
0
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
composer/spdx-licenses@1.5.7
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of composer/spdx-licenses 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does composer/spdx-licenses do?

The composer/spdx-licenses package is a utility library originally part of the larger composer/composer project, but now stands as a separate entity. This package provides a list of Software Package Data Exchange (SPDX) licenses and a validation library. It allows users to access information about licenses, check their OSI approval status, identify deprecated licenses, and validate SPDX license expressions.

How do you use composer/spdx-licenses?

To use the composer/spdx-licenses package, first install it using Composer with the command composer require composer/spdx-licenses. Once installed, you can incorporate it into your project like so:

<?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);

This PHP code demonstrates how to utilize the various functions provided by the SpdxLicenses class.

Where are the composer/spdx-licenses docs?

For more detailed documentation and specifications relating to valid SPDX license expressions, you should visit the official SPDX website https://spdx.org/specifications. The composer/spdx-licenses GitHub repository does not contain standalone documentation, but the README file provides a general understanding of installation and usage. License information details can be accessed from the SPDX's License List Data repository.