Migrate laminas/laminas-stratigility to TypeScript

C Runtime-assisted · version 4.3.1

laminas/laminas-stratigility 4.3.1 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, 128 of 162 PHPUnit tests pass (79.0%), with 1 failure and 33 errors. It depends on 5 tracked packages (weakest tier: Converted), and no tracked package depends on it.

PSR-7 middleware foundation for building and dispatching middleware pipelines

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

PHPUnit results on Node.js

79.0% of 162 tests passing (128 passed, 1 failed, 33 errors, 0 skipped). Verified 2026-10-21.

Where tests fail

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

Test classFailing tests
NextTest10
MiddlewarePipeTest9
ErrorHandlerTest5
HostMiddlewareDecoratorTest4
PathMiddlewareDecoratorTest2

The remaining 4 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

Weakest dependency: D Converted

Used by

No tracked package depends on laminas/laminas-stratigility.

More from laminas

Upstream

Version
4.3.1
License
BSD-3-Clause
Repository
https://github.com/laminas/laminas-stratigility
Homepage
https://laminas.dev
Keywords
laminas, http, psr-7, psr-15, psr-17, middleware

Migrating a codebase that uses laminas/laminas-stratigility?

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