Migrate sebastian/object-reflector to TypeScript

C Runtime-assisted · version 5.0.0

sebastian/object-reflector 5.0.0 is a PHP package released under the BSD-3-Clause license and requires PHP >=8.3. Pext migrates it to TypeScript; on Node.js, 1 of 2 PHPUnit tests pass (50.0%), with 1 failure and no errors. It has no tracked dependencies, and 2 tracked packages depend on it.

Allows reflection of object attributes, including inherited and non-public ones

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

PHPUnit results on Node.js

50.0% of 2 tests passing (1 passed, 1 failed, 0 errors, 0 skipped). Verified 2026-10-26.

Where tests fail

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

Test classFailing tests
ObjectReflectorTest1

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.3
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 sebastian

Upstream

Version
5.0.0
License
BSD-3-Clause
Homepage
https://github.com/sebastianbergmann/object-reflector/

Migrating a codebase that uses sebastian/object-reflector?

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