Tags
HTML , css
Asked 2 years ago
18 Feb 2022
Views 469
sandip

sandip posted

how to generate QR code with PHP ?


i want to create QR codes for invoices in my website. so it should be dynamic, and it should contains invoice info like payer name, and other detail, whom they paying, etc.
angeo

angeo
answered Feb 18 '22 00:00

download library from the below url :
https://sourceforge.net/projects/phpqrcode/

and start to code for creation of the generate QR code with PHP


<?php
include 'phpqrcode/qrlib.php';
 $text = "Invoice no : 121 ";
 QRcode::png($text);
?>


include needed library by
include 'phpqrcode/qrlib.php';

than use QRcode to generate png file from the text

Post Answer