您的位置:首页 > 编程语言 > PHP开发

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

2015-03-20 17:23 627 查看
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;

?>

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: