composer/spdx-licenses
PHP library providing the official SPDX license and exception lists plus validation for SPDX license expressions. Look up licenses by identifier or name, check OSI approval or deprecation status, and validate license strings for Composer and tooling.
composer.json contains deprecated or non-OSI licenses.composer validate with a --check-licenses flag to enforce SPDX compliance during dependency installation.spdx-audit command-line tool to scan projects for deprecated/non-OSI licenses (e.g., ./vendor/bin/spdx-audit --fail-on=deprecated).SpdxServiceProvider to validate licenses in config/app.php or middleware (e.g., block requests from non-compliant dependencies).Adopt if:
composer.json files (e.g., license field).Look elsewhere if:
For Executives: "This package lets us automate license compliance in our PHP/Laravel stack—just like Composer does internally. By integrating it into our CI/CD pipelines, we can block non-compliant dependencies before they reach production, reducing legal and security risks. It’s lightweight, maintained by the Composer team, and aligns with open-source governance and regulatory requirements (e.g., SPDX for supply chain transparency). Think of it as a ‘license firewall’ for our dependencies—no more surprises from GPLv3 or deprecated licenses."
For Engineering/DevOps: *"We can use this to:
composer.json has invalid/non-OSI licenses (e.g., via GitHub Actions).spdx-audit CLI tool.For Legal/Compliance: *"This gives us real-time visibility into license risks across our PHP dependencies. We can:
How can I help you explore Laravel packages today?