Migrate dompdf/php-svg-lib to TypeScript

B Production-ready · version 1.0.2

dompdf/php-svg-lib 1.0.2 is a PHP package released under the LGPL-3.0-or-later license and requires PHP ^7.1 || ^8.0. Pext migrates it to TypeScript; on Node.js, 7 of 7 PHPUnit tests pass (100%), with no failures and no errors. It depends on 1 tracked package (weakest tier: Converted), and 1 tracked package depends on it.

A library to read, parse and export to PDF SVG files.

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

PHPUnit results on Node.js

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

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
^7.1 || ^8.0
Extensions
mbstring

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 dompdf

Upstream

Version
1.0.2
License
LGPL-3.0-or-later
Homepage
https://github.com/dompdf/php-svg-lib

Migrating a codebase that uses dompdf/php-svg-lib?

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