1.google开放api
代码如下:
2.PHP类库PHP QR Code
<div class="codebody" id="code4277">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/
实例:
<div class="codetitle"><a style="CURSOR: pointer" data="4277" class="copybut" id="copybut4277" onclick="doCopy('code4277')"> 代码如下:
<?
include "./phpqrcode/phpqrcode.php";
$value="http://www.weste.net";
$errorCorrectionLevel = "L";
$matrixPointSize = "4";
QRcode::png($value,false,$errorCorrectionLevel,$matrixPointSize);
exit;
?>