PHP Package: composer/spdx-licenses

A PHP library for SPDX license information management and validation, providing easy integration with composer projects.

Current Version: 1.5.8
Last Updated: 2023-11-20
PHP Requirement: >=7.1
Dependencies: composer/semver, phpunit/phpunit
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

The composer/spdx-licenses library is a comprehensive solution for handling SPDX license data in PHP applications. It offers functionalities for parsing, validating, and retrieving license information, ensuring compliance with open-source licensing requirements. With seamless integration into composer projects, this library simplifies license management tasks, enabling developers to focus on creating quality software. Explore the extensive SPDX license database and streamline license-related processes in your projects today.

🔗 View on GitHub

Download Latest Version: 1.5.8

Download Download v1.5.8

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php

// Example from PHPlibraries.com
require_once 'libs/composer/spdx-licenses/1.5.8/autoload.php';

use Composer\SpdxLicenses\SpdxLicenses;
use Composer\Semver\VersionParser;
use PHPUnit\Framework\TestCase;


$obj = new Composer\SpdxLicenses\SpdxLicenses();
echo "✅ Example created successfully.";

?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.