Migrate laminas/laminas-eventmanager to TypeScript

C Runtime-assisted · version 3.15.0

laminas/laminas-eventmanager 3.15.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, 207 of 273 PHPUnit tests pass (75.8%), with 2 failures and 64 errors. It has no tracked dependencies, and 4 tracked packages depend on it.

Trigger and listen to events within a PHP application

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

PHPUnit results on Node.js

75.8% of 273 tests passing (207 passed, 2 failed, 64 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
EventManagerTest23
FilterIteratorTest18
FilterChainTest11
EventManagerPriorityTest8
EventListenerIntrospectionTraitTest2

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

No tracked dependencies.

Used by

More from laminas

Upstream

Version
3.15.0
License
BSD-3-Clause
Repository
https://github.com/laminas/laminas-eventmanager
Homepage
https://laminas.dev
Keywords
laminas, event, events, eventmanager

Migrating a codebase that uses laminas/laminas-eventmanager?

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