Migrate grasmash/expander to TypeScript

B Production-ready · version 4.0.0

grasmash/expander 4.0.0 is a PHP package released under the MIT license and requires PHP >=8.2. Pext migrates it to TypeScript; on Node.js, 15 of 16 PHPUnit tests pass (93.7%), with 1 failure and no errors. It depends on 2 tracked packages (weakest tier: Converted), and 1 tracked package depends on it.

Expands internal property references in PHP arrays.

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

PHPUnit results on Node.js

93.7% of 16 tests passing (15 passed, 1 failed, 0 errors, 0 skipped). Verified 2026-10-21.

Where tests fail

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

Test classFailing tests
ExpanderTest1

What “Production-ready” means

Passes at least 80% of its original tests and behaves like the PHP original on the paths that matter. Remaining gaps are tracked.

Requirements

PHP
>=8.2
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

More from grasmash

Upstream

Version
4.0.0
License
MIT
Repository
https://github.com/grasmash/expander
Keywords
array, configuration, dot-notation, expansion, placeholder, yaml

Migrating a codebase that uses grasmash/expander?

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