php类库PHP QR Code 二维码

来源:互联网 发布:小区车辆出入数据 编辑:程序博客网 时间:2024/05/18 02:23
php类库PHP QR Code
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).

只需这样应用就行了

<?
include "./phpqrcode/phpqrcode.php";
$value=‘http://www.jinyuanbao.cn’;
$errorCorrectionLevel = 'L';
$matrixPointSize = 4;
QRcode::png($value, false, $errorCorrectionLevel, $matrixPointSize);
exit;
?>
0 0