Migrate chillerlan/php-qrcode to TypeScript

B Production-ready · version 5.0.5

chillerlan/php-qrcode 5.0.5 is a PHP package released under the MIT OR Apache-2.0 license and requires PHP ^7.4 || ^8.0. Pext migrates it to TypeScript; on Node.js, 11,623 of 11,942 PHPUnit tests pass (97.3%), with 9 failures, 310 errors and 443 skipped. It depends on 1 tracked package (weakest tier: Converted), and 1 tracked package depends on it.

A QR Code generator and reader with a user-friendly API. PHP 7.4+

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

PHPUnit results on Node.js

97.3% of 11,942 tests passing (11,623 passed, 9 failed, 310 errors, 443 skipped). Verified 2026-10-21.

Where tests fail

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

Test classFailing tests
QRCodeReaderGDTest174
QRMarkupSVGTest21
QRMarkupHTMLTest20
QROptionsTest14
AlphaNumTest11

The remaining 79 failing tests are spread across other classes.

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.4 || ^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 chillerlan

Upstream

Version
5.0.5
License
MIT OR Apache-2.0
Repository
https://github.com/chillerlan/php-qrcode
Keywords
QR code, qrcode, qr, qrcode-generator, phpqrcode, qrcode-reader, qr-reader

Migrating a codebase that uses chillerlan/php-qrcode?

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