github.com/endroid/qr-code
$ composer require endroid/qr-code
Basic usage
use Endroid\QrCode\QrCode;
$qrCode = new QrCode('Life is too short to be generating QR codes');
header('Content-Type: '.$qrCode->getContentType());
echo $qrCode->writeString();
echo $qrCode->writeDataUri();//直接輸出url
本作品採用《CC 協議》,轉載必須註明作者和本文連結