zl程序教程

您现在的位置是:首页 >  后端

当前栏目

php类库PHP QR Code 二维码

PHPcode 二维码 类库 QR
2023-09-14 08:59:34 时间

php类库PHP QR Code 二维码

php类库PHP QR Code 二维码

 

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://bbs.lewanchina.com’;
$errorCorrectionLevel = 'L';
$matrixPointSize = 4;
QRcode::png($value, false, $errorCorrectionLevel, $matrixPointSize);
exit;
?>