Migrate composer/spdx-licenses to TypeScript

D Converted · version 1.6.0

composer/spdx-licenses 1.6.0 is a PHP package released under the MIT license and requires PHP ^7.2 || ^8.0. Pext migrates it to TypeScript; on Node.js, 2 of 14 PHPUnit tests pass (14.2%), with no failures and 12 errors. It has no tracked dependencies, and 1 tracked package depends on it.

SPDX licenses list and validation library.

ConvertsYes
Runs on Node.jsYes
Runs on BunNot yet measured
TypeScript typesNot emitted

PHPUnit results on Node.js

14.2% of 14 tests passing (2 passed, 0 failed, 12 errors, 0 skipped). Verified 2026-10-21.

Where tests fail

The test class with the most failing tests on Node.js:

Test classFailing tests
SpdxLicensesTest12

What “Converted” means

Converts cleanly to TypeScript. Test verification is pending or still climbing.

Requirements

PHP
^7.2 || ^8.0
Extensions
None declared

As declared in the package's Composer metadata. Pext provides PHP extensions through its runtime modules.

Dependencies

No tracked dependencies.

Used by

More from composer

Upstream

Version
1.6.0
License
MIT
Keywords
spdx, license, validator

Migrating a codebase that uses composer/spdx-licenses?

See how Pext migrates a real PHP application, its Composer dependencies and its test suite to TypeScript.