How to Generate QR Code in PHP with Example
Here I share PHP script that will help you to generate the QR code. Will create various QR code like text, URLs, email, etc…
In this article we will see how we can generate the QR code from the text in php.
QR code provides an open-source library. This Library has a few more functionalities provide. Download library files. https://sourceforge.net/projects/phpqrcode/files/
Now we can create the code to generate QR Code with library files. and create images folder to store all QR Code image.
/* QRCode.php */
<?php
include('qrlib.php');
QRcode::png('https://devnote.in', 'images/devnote.png',"L",20,20);
?>
Display the QR code in webpage :
/* index.php */
<?php
echo '<img src="images/devnote.png" />';
?>
Output :