PHPQRCode library for generating QR codes in php

Source: Internet
Author: User
A qr code is used to record data information with a specific geometric image on a plane. a QR code is a common QR code. The QR principle is complicated to understand. it takes a lot of time to process it by yourself. We recommend a php class library PHPQRCode that generates QR codes. I have used SyntaxHighlighter. all () for more than a year. the QR code is used to record data information on a plane with a specific geometric image. the QR code is a common QR code. The QR principle is complicated to understand. it takes a lot of time to process it by yourself. We recommend a php class library php qr Code that generates QR codes. I have been using this for more than a year and have not found any problems. I will share it with you.

Home Address: Workshop.

QR code

Data indicates the Data to be recorded. a maximum of 984 UTF-8 encoded Chinese characters can be stored.
ECC indicates the error correction level. the higher the error correction level, the larger the image to be generated.

L horizontal code 7% can be corrected M horizontal code 15% can be corrected Q horizontal code 25% can be corrected H horizontal code 30% can be corrected

Size indicates the pixels of each black spot in the image.

Code call example:

Include "qrlib. php "; QRcode: png ($ data, $ filename, $ errorCorrectionLevel, $ matrixPointSize, $ margin ); /* $ data $ name of the image saved by filename $ errorCorrectionLevel error handling level $ matrixPointSize pixels of each black spot $ white border pixels outside the margin image */

For details about the QR code, refer to the QR Wikipedia. the Chinese version is rarely described. The English version is very comprehensive.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.