php 二维码(QR Code)相关备忘

What is QR Code
QR Code is a matrix code (or two-dimensional bar code) created by Japanese corporation Denso-Wave in 1994. The “QR” is derived from “Quick Response”,
as the creator intended the code to allow its contents to be decoded at high speed.

维基百科:http://en.wikipedia.org/wiki/QR_Code
互动百科:http://www.hudong.com/wiki/%E4%BA%8C%E7%BB%B4%E7%A0%81

目前php生成二维码可以有以下几种方式
1.google开放api


$urlToEncode = urlencode("");

generateQRfromGoogle($urlToEncode);

function generateQRfromGoogle($chl, $widhtHeight ='150', $EC_level='L', $margin='0')
{
    echo "QR code";
}

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/

3.libqrencode

地址:http://fukuchi.org/works/qrencode/index.en.html
php支持请参考:http://hirokawa.netflowers.jp/entry/4900/

4.QRcode Perl CGI & PHP scripts
地址:http://www.swetake.com/qr/qr_cgi.html

“php 二维码(QR Code)相关备忘”的一个回复

发表评论