In this article, we are going through a PHP library to detect and decode QR-codes.
Installing QR Code Reader/Decoder PHP Library
The recommended method of installing this library is via Composer. We need to run the following command from the project root:
$ composer require khanamiryan/qrcode-detector-decoder
QR Reader Source Code :
<?php require __DIR__ . "/vendor/autoload.php"; $qrcode = new Zxing\QrReader('image.png'); $text = $qrcode->text(); echo $text; exit;
Reference : https://github.com/khanamiryan/php-qrcode-detector-decoder
Follow this video for complete guidance :