This library helps us to generate QR codes very easily. The library makes use of bacon/bacon-qr-code to generate the matrix and khanamiryan/qrcode-detector-decoder for validating generated QR codes. Further extended with Twig extensions, generation routes, a factory and a Symfony bundle for easy installation and configuration.
According to Wikipedia, QR code (Quick Response Code) is the trademark for a type of matrix barcode (or two-dimensional barcode) first designed in 1994 for the automotive industry in Japan. A barcode is a machine-readable optical label that contains information about the item to which it is attached. In practice, QR codes often contain data for a locator, identifier, or tracker that points to a website or application. A QR code uses four standardized encoding modes (numeric, alphanumeric, byte/binary, and kanji) to store data efficiently; extensions may also be used.
Install endroid/qr-code library using composer
$ composer require endroid/qr-code
GitHub Link Here : QR Code Generator
First Download the library and then create a index.php file with the following code in it:
<?php include('vendor/autoload.php'); use Endroid\QrCode\QrCode; $qrCode = new QrCode('http://letzcricket.com'); header('Content-Type: '.$qrCode->getContentType()); echo $qrCode->writeString();