PHP generates two-dimensional codes in multiple ways. you can use the open APIs of google to generate the phpQRCode class library. This article focuses on generating two-dimensional codes using the phpQRCode class library. 1. Code package :... PHP generates QR codes in multiple ways. you can use APIs opened by google to generate QR codes using the php QR Code class library. This article focuses on generating QR codes using the php QR Code class library.
1. Code package: http://sourceforge.net/projects/phpqrcode/
2. there are many examples in the downloaded compressed package. you can study it on your own. The following is a simple use case. the code is as follows:
include "phpqrcode/phpqrcode.php"; $data='http://www.phprm.com'; $errorCorrectionLevel="L"; $matrixPointSize="4"; QRcode::png($data,false,$errorCorrectionLevel,$matrixPointSize);
Official method example, the code is as follows:
3. Some QR codes have images in the middle. In fact, the pictures are copied to the generated QR code image.
Use google to generate an open interface for QR code. the code is as follows:
The code is as follows:
$ Data = 'copyright: http://www.phprm.com/'; generateQRfromGoogle ($ data );
Address:
Reprinted at will, but please attach the article address :-)