QR code generator, an LGPL PHP library

2018 年 8 月 16 日2210


Overview

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).

Some of library features includes:

Usage

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

Then use it as follows:

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

QRcode::png('some othertext 1234'); // creates code image and outputs it directly into browser

Above examples show the most basic usage. For more features and customization see Detailed examples and PHP QR Code wiki or read INSTALL file in distrribution package.

Acknowledgements

Based on C libqrencode library (ver. 3.1.1), Copyright (C) 2006-2010 by Kentaro Fukuchi

http://http://www.zjjv.com///fukuchi/works/qrencode/index.en.html

QR Code is registered trademarks of DENSO WAVE INCORPORATED in JAPAN and other countries.

Reed-Solomon code encoder is written by Phil Karn, KA9Q. Copyright (C) 2002, 2003, 2004, 2006 Phil Karn, KA9Q

Contact

Fell free to contact me via e-mail (deltalab at poczta dot fm - prefferable) or using folowing project pages:

http://http://www.zjjv.com///projects/phpqrcode/

http://http://www.zjjv.com///

PHP QR Code live demo

Because main purpose of this demo is provide example how lib work - not to create sourceforge-based code generation service - all generated codes are padded with DEMO text, sorry

0 0