PHP code example of mapolun / qr-code-reader
1. Go to this page and download the library: Download mapolun/qr-code-reader library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mapolun / qr-code-reader example snippets
use QrCodeReader\Lib\QrReader;
$qrcode = new QrReader(__DIR__ . '/src/qr.png'); //图片路径
$text = $qrcode->decode(); //返回识别后的文本
echo $text;