1、Google開(kāi)放api
$urlToEncode='http://www.xiqiao.me'; generateQRfromGoogle($urlToEncode); function generateQRfromGoogle($chl,$widhtHeight ='150',$EC_level='L',$margin='0') { $url = urlencode($url); echo '??'; }
2、php類庫(kù)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).
信息來(lái)源商企云:昌平區(qū)網(wǎng)站制作,昌平區(qū)網(wǎng)站設(shè)計(jì),昌平區(qū)網(wǎng)站建設(shè)公司