QR Codes: a PHP library for dynamic generation.

PHP QR Code is open source (LGPL) library for generating QR Code, 2-dimensional barcode. Based on libqrencode C library, provides API for creating QR Code barcode images (PNG, JPEG thanks to GD2).

Implemented purely in PHP, with no external dependencies (except GD2 if needed).

As described in official WebSite, the use of this library is very simple.

To start, install ONE of the two available libraries:
qrlib.php for full version (also you have to provide all library files form package plus cache dir)
phpqrcode.php for merged version (only one file, but slower and less accurate code because disabled cache and quicker masking configured)

To create a file (containing the QR Code Image):

QRcode::png('code data text', 'filename.png');

To create directly the image and output it directly into browser:

QRcode::png('code data text');

For more features and customization see PHP QR Code WiKi or read INSTALL file in distrribution package.


Comments are closed.