軟件簡介
PHP QR Code是一個開源的php二維碼開源類庫,基于libqrencode C庫,并提供API代碼創建QR條碼圖像,支持png、jpg格式。功能強大,使用起來也非常簡單。
demo代碼如下:
<?
include "./phpqrcode/phpqrcode.php";
$value="http://m.wsalc.com";
$errorCorrectionLevel = "L";
$matrixPointSize = "4";
QRcode::png($value, false, $errorCorrectionLevel, $matrixPointSize);
exit;
?>
生成的二維碼圖片: