PHP generation QR Code Class library Introduction to the use of PHP code _php tutorial

Source: Internet
Author: User
QR code is a common two-dimensional code, which is used to record data information with specific geometry on the plane. The QR principle is more complex to understand, and it takes a lot of time to deal with it yourself. PHP qr code is a PHP class library that generates a QR code. This I use for more than 1 years, did not find any problems, share to everyone.

Home Address: http://phpqrcode.sourceforge.net/, the site can directly download the source code, download and extract to the Web directory, through the Web Access, you can see the demo demo.

QR code

Data indicates the number of records to be recorded if the Utf-8 encoding is stored in Chinese, up to 984.
ECC indicates the level of error correction, the higher the error correction level, the larger the image will be generated.

L level    7% loadline can be corrected m level    15% loadline can be corrected Q level    25% loadline can be corrected H level    30% Loadline can be modified

Size represents the pixels of each black point in the picture.

Example of code invocation:

Include "qrlib.php"; QRCode::p ng ($data, $filename, $errorCorrectionLevel, $matrixPointSize, $margin); /*    $data data    $filename saved picture names    $errorCorrectionLevel error-handling levels    $matrixPointSize pixels per black point    $margin White border pixels outside the picture */

QR Code detailed principle can refer to the QR Wikipedia, the Chinese version of the relatively few, the English version of the introduction is comprehensive, recommended to see the English version of

http://www.bkjia.com/PHPjc/477850.html www.bkjia.com true http://www.bkjia.com/PHPjc/477850.html techarticle QR Code is a common two-dimensional code, which is used to record data information with specific geometry on the plane. The QR principle is more complex to understand, and it is not possible to take the time to deal with it.

  • Related Article

    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.