Migrate laminas/laminas-escaper to TypeScript

B Production-ready · version 2.18.0

laminas/laminas-escaper 2.18.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, 649 of 649 PHPUnit tests pass (100%), with no failures and no errors. It has no tracked dependencies, and 9 tracked packages depend on it.

Securely and safely escape HTML, HTML attributes, JavaScript, CSS, and URLs

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

PHPUnit results on Node.js

100% of 649 tests passing (649 passed, 0 failed, 0 errors, 0 skipped). Verified 2026-10-17.

Where tests fail

Every executed test passes.

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.0 || ~8.3.0 || ~8.4.0 || ~8.5.0
Extensions
ctypembstring

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

Migrating a codebase that uses laminas/laminas-escaper?

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