Migrate laminas/laminas-stdlib to TypeScript

C Runtime-assisted · version 3.21.0

laminas/laminas-stdlib 3.21.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, 273 of 345 PHPUnit tests pass (79.1%), with 30 failures, 42 errors and 112 skipped. It has no tracked dependencies, and 35 tracked packages depend on it.

SPL extensions, array utilities, error handlers, and more

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

PHPUnit results on Node.js

79.1% of 345 tests passing (273 passed, 30 failed, 42 errors, 112 skipped). Verified 2026-10-21.

Where tests fail

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

Test classFailing tests
FastPriorityQueueTest19
PriorityQueueTest13
ArrayObjectTest9
OptionsTest7
ArrayUtilsTest5

The remaining 19 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
3.21.0
License
BSD-3-Clause
Repository
https://github.com/laminas/laminas-stdlib
Homepage
https://laminas.dev
Keywords
laminas, stdlib

Migrating a codebase that uses laminas/laminas-stdlib?

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