QR Code
https://reeteshghimire.com.np/2020/03/10/generate-qr-code-using-php-library/
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.
Installation
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();
Comments
Post a Comment