Migrate laminas/laminas-xml2json to TypeScript

D Converted · version 3.3.0

laminas/laminas-xml2json 3.3.0 is a PHP package released under the BSD-3-Clause license and requires PHP ^7.3 || ^8.0. Pext migrates it to TypeScript; on Node.js, 0 of 9 PHPUnit tests pass (0.0%), with 1 failure and 8 errors. It depends on 2 tracked packages (weakest tier: Converted), and no tracked package depends on it.

Provides functionality for converting XML to JSON, optionally including XML attributes

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

PHPUnit results on Node.js

0.0% of 9 tests passing (0 passed, 1 failed, 8 errors, 0 skipped). Verified 2026-10-21.

Where tests fail

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

Test classFailing tests
Xml2JsonTest9

What “Converted” means

Converts cleanly to TypeScript. Test verification is pending or still climbing.

Requirements

PHP
^7.3 || ^8.0
Extensions
simplexml

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-xml2json.

More from laminas

Upstream

Version
3.3.0
License
BSD-3-Clause
Repository
https://github.com/laminas/laminas-xml2json
Homepage
https://laminas.dev
Keywords
laminas, json, xml

Migrating a codebase that uses laminas/laminas-xml2json?

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