What is QR code? QR code is a type of two-dimensional barcode that can compile information such as website addresses, text, photos, etc. into a square barcode pattern through corresponding encoding algorithms. Mobile phone users can re-decode the relevant information and view the content through the camera and decoding software. # Two sentences explanation: # If you include qrlib.php, you need to put it together with other files: files and folders. #phpqrcode.php is the merged version, you only need to include this file, but the generated image is slow and inaccurate # Two usages are given below:
If you need to generate colorful ones, you need to do it yourself Modify the color setting part of the code in the image method of the QRimage class in phpqrcode.php. The 1.1.4 version of the code is on lines 987 and 988, with one foreground color and one background color:
About QRcode For usage, you can also refer to the article: php generates QR code library (QRCode method), php generates QR code image class QRcode 2. Generate using google open api
For the method of google api to generate QR code, you can also refer to: php calls google interface to generate QR code QR code example, how to generate QR code using Google API Address: http://phpqrcode.sourceforge.net/ Download: http://sourceforge.net/projects/phpqrcode/ 3.libqrencode Address: http://fukuchi.org/works/qrencode/index.en.html For php support, please refer to: http://hirokawa.netflowers.jp/entry/4900/ 4.QRcode Perl CGI & PHP scripts Address: http://www.swetake.com/qr/qr_cgi.html |