PHPQRCode是PHP用来处理二维条形码的开发包。基于C语言的libqrencode库开发,提供生成二维条形码功能,包括PNG、JPG格式。使用纯PHP实现,无需依赖第三方包,除了GD2除外。
示例代码:
QRcode::png('codedatatext','filename.png');//createsfileQRcode::png('someothertext1234');//createscodeimageandoutputsitdirectlyintobrowser
主要特性:
SupportsQRCodeversions(size)1-40Numeric,Alphanumeric,8-bitandKanjiencoding.(Kanjiencodingwasnotfullytested,ifyouarejapan-encodingenabledyoucencontributebyverifingit:))ImplementedpurelyinPHP,noexternaldependenciesexceptGD2ExportstoPNG,JPEGimages,alsoexportsasbit-tableTCPDF2-DbarcodeAPIintegrationEasytoconfigureDatacacheforcalculationspeed-upProvidedmergetoolhelpsdeploylibraryasaonebigdependency-lessfile,simpleto"includeanddonotwory"Debugdatadump,errorlogging,timebenchmarking100%OpenSource,LGPLLicensed
评论