Home>Article>Backend Development> How does PHP realize the generation and identification of QR codes (code)
The content of this article is about how PHP realizes the generation and identification of QR codes (codes). It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.
Recommended manual: php complete self-study manual
linear stacked QR code
Matrix QR code
Large information capacity
Wide encoding range
Strong fault tolerance
High decoding reliability
Encryption measures can be introduced
Low cost and easy to produce
QR code technology has become a new channel for the spread of mobile viruses and phishing websites
Information leakage
PDF417: Does not support Chinese
DM: Unpublished patent , need to pay patent fees
QR CODE: patent disclosure, support Chinese
L level: approximately 7% of the data codewords can be corrected
M level: approximately 15% of the data codewords can be error corrected
Q level: approximately 25% of the data codewords can be corrected
H level: approximately 30% of the data codewords can be error corrected
GD library
Official website: http://phpqrcode.sourceforge.net/
Download source code: https://github.com/endroid/qr-code
##1. qrcode_create.phpps: Generate ordinary QR code
2. qrcode_logo.phpps: Generate QR code with Logo
3. qrcode_vcard.php(Generate electronic signature)
Recommended related articles: 1.2. JQUERY generates QR CODE
Example of PHP generating WeChat QR code 2.
PHP URL conversion to generate QR code
Related video recommendations: 1.
Dugu Jiujian (4)_PHP video tutorial
3. PHP identification QR code 1. Method 1Jquery生成二维码
Environmental requirements, install the following extensions- ImageMagick
- zbar
- php-zbarcode
PHP recognizes QR codes (no need to install extensions). For preliminary testing, ordinary QR codes are OK. For QR codes with logo, the fault tolerance level needs to be set higher.qrReader class: https://github.com/baagee/php_QrReader
text(); //返回识别后的文本 echo $text;
Related recommendations:
php uses open and fwrite to export files (code) in multiple formats php implementation code for exporting Excel files in csv formatThe above is the detailed content of How does PHP realize the generation and identification of QR codes (code). For more information, please follow other related articles on the PHP Chinese website!