PHP QR Code
PHP QR Code 是 PHP 用來處理二維條形碼的開發(fā)包。基于 C 語言的 libqrencode 庫開發(fā),提供生成二維條形碼功能,包括 PNG、JPG 格式。使用純 PHP 實現(xiàn),無需依賴第三方包,除了 GD2 除外。
示例代碼:
QRcode::png('code data text', 'filename.png'); // creates file
QRcode::png('some othertext 1234'); // creates code image and outputs it directly into browser
主要特性:
- Supports QR Code versions (size) 1-40
- Numeric, Alphanumeric, 8-bit and Kanji encoding. (Kanji encoding was not fully tested, if you are japan-encoding enabled you cen contribute by verifing it :) )
- Implemented purely in PHP, no external dependencies except GD2
- Exports to PNG, JPEG images, also exports as bit-table
- TCPDF 2-D barcode API integration
- Easy to configure
- Data cache for calculation speed-up
- Provided merge tool helps deploy library as a one big dependency-less file, simple to "include and do not wory"
- Debug data dump, error logging, time benchmarking
- 100% Open Source, LGPL Licensed
評論
圖片
表情
