php生成二维码 (类库PHP QR Code)

http://blog.csdn.net/small_rice_/article/details/22922455

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

地址:http://phpqrcode.sourceforge.net/
下载:http://sourceforge.net/projects/phpqrcode/
实例:

自己写的如下:
<?
include "./phpqrcode/phpqrcode.php";
$value="http://www.baidu.com";
$errorCorrectionLevel = "L";
$matrixPointSize = "6";
QRcode::png($value, false, $errorCorrectionLevel, $matrixPointSize);
exit;
?>
php生成二维码 (类库PHP QR Code)_第1张图片


你可能感兴趣的:(php生成二维码 (类库PHP QR Code))