Migrate laminas/laminas-code to TypeScript

C Runtime-assisted · version 4.17.0

laminas/laminas-code 4.17.0 is a PHP package released under the BSD-3-Clause license and requires PHP ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0. Pext migrates it to TypeScript; on Node.js, 730 of 1,188 PHPUnit tests pass (61.4%), with 41 failures, 417 errors and 5 skipped. It has no tracked dependencies, and 3 tracked packages depend on it.

Extensions to the PHP Reflection API, static code scanning, and code generation

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

PHPUnit results on Node.js

61.4% of 1,188 tests passing (730 passed, 41 failed, 417 errors, 5 skipped). Verified 2026-10-21.

Where tests fail

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

Test classFailing tests
ParameterGeneratorTest127
TypeGeneratorTest85
ParameterReflectionTest55
MethodGeneratorTest47
MethodReflectionTest16

The remaining 128 failing tests are spread across other classes.

What “Runtime-assisted” means

Runs and passes most of its tests, with the Pext runtime doing visible work to preserve PHP behaviour.

Requirements

PHP
~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.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 laminas

Upstream

Version
4.17.0
License
BSD-3-Clause
Repository
https://github.com/laminas/laminas-code
Homepage
https://laminas.dev
Keywords
laminas, laminasframework, code

Migrating a codebase that uses laminas/laminas-code?

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