Package Data | |
---|---|
Maintainer Username: | libern |
Maintainer Contact: | libernlin@gmail.com (Libern Lin) |
Package Create Date: | 2015-07-25 |
Package Last Update: | 2020-12-10 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-22 03:05:16 |
Package Statistics | |
---|---|
Total Downloads: | 172,279 |
Monthly Downloads: | 2,866 |
Daily Downloads: | 145 |
Total Stars: | 92 |
Total Watchers: | 13 |
Total Forks: | 28 |
Total Open Issues: | 14 |
This is a PHP library to detect and decode QR-codes. This is QR code reader that works without extensions. This library supports PSR-4. Based on QR code decoder / reader for PHP Ported from ZXing library
Use Composer:
composer require libern/qr-code-reader
From image url
$QRCodeReader = new Libern\QRCodeReader\QRCodeReader();
$qrcode_text = $QRCodeReader->decode("path_to_qr_code");
echo $qrcode_text;
From image stream
$QRCodeReader = new Libern\QRCodeReader\QRCodeReader();
$qrcode_text = $QRCodeReader->decode(base64_encode("image_stream"));
echo $qrcode_text;