chillerlan/php-qrcode is a PHP package that generates QR codes with flexible output modules and can read codes using GD or ImageMagick.
Overview
chillerlan/php-qrcode is a PHP library for creating and reading QR codes. It builds on Kazuhiko Arase's implementation with namespacing and cleanup, and adds a reader ported from the ZXing library.
Generation supports mixed encoding modes within one symbol, including numeric, alphanumeric, 8-bit binary, and kanji via Shift-JIS. Built-in output modules cover markup types such as SVG and HTML, string types such as JSON and plain text, and encapsulated PostScript.
The reader path relies on PHP's GD extension or ImageMagick. The project documents installation through Composer and points to a versioned user manual and examples that match the installed release branch.
It targets modern PHP releases as stated in the requirements. A separate JavaScript port is noted on NPM under @chillerlan/qrcode, but this package is the PHP library for embedding generation or decoding in PHP applications.
Key features
- Mixed-mode QR encoding
- SVG, HTML, JSON, and EPS output
- QR code reader via GD or ImageMagick
- Composer installation
- Extensible output modules
- Kanji Shift-JIS double-byte mode
- Based on Arase implementation
- ZXing-based reader port
Use cases
- Embed QR images in PHP web apps
- Encode URIs for authenticator apps
- Export QR symbols as SVG or JSON
- Decode QR images server-side in PHP
Does the same job as
PHP Qrcode doesn't name these products itself, but its own description shows it does the same job.