PHP通过QrReader类对二维码进行解码得到相应的字符串
安装
通过 Composer 安装 qrcode-detector-decoder
composer require khanamiryan/qrcode-detector-decoder |
代码案例
use Zxing\QrReader;
$qrcode = new QrReader("二维码位置"); // 二维码解码后对应的字符串 $text = $qrcode->text(); |
2022-05-14 20:26:31
通过 Composer 安装 qrcode-detector-decoder
composer require khanamiryan/qrcode-detector-decoder |
use Zxing\QrReader;
$qrcode = new QrReader("二维码位置"); // 二维码解码后对应的字符串 $text = $qrcode->text(); |