Migrate laminas/laminas-json to TypeScript

C Runtime-assisted · version 3.8.0

laminas/laminas-json 3.8.0 is a PHP package released under the BSD-3-Clause license and requires PHP ^8.1.0. Pext migrates it to TypeScript; on Node.js, 48 of 76 PHPUnit tests pass (63.1%), with 6 failures, 22 errors and 1 skipped. It has no tracked dependencies, and 2 tracked packages depend on it.

provides convenience methods for serializing native PHP to JSON and decoding JSON to native PHP

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

PHPUnit results on Node.js

63.1% of 76 tests passing (48 passed, 6 failed, 22 errors, 1 skipped). Verified 2026-10-21.

Where tests fail

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

Test classFailing tests
JsonTest28

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.1.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.8.0
License
BSD-3-Clause
Repository
https://github.com/laminas/laminas-json
Homepage
https://laminas.dev
Keywords
laminas, json

Migrating a codebase that uses laminas/laminas-json?

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