PHP二維條形碼開發包 PHP QR Code
PHP QR Code 是 PHP 用來處理二維條形碼的開發包。基于 C 語言的 libqrencode 庫開發,提供生成二維條形碼功能,包括 PNG、JPG 格式。使用純 PHP 實現,無需依賴第三方包,除了 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
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!