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

来源:互联网 发布:仙桃数据谷 重庆 编辑:程序博客网 时间:2024/05/17 21:42
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;
?>



0 0
原创粉丝点击