1. Go to this page and download the library: Download lrq/qrcode 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/ */
lrq / qrcode example snippets
use lrq\qrcode\QrcodeMain;
$str = 'test'; //初始化传入需要转化为二维码的字符串
$qrcode = new QrcodeMain($str); //初始化传入需要转化为二维码的字符串
$qrcode->execute();
$qrcode->png('qr1.png'); //保存图片
echo $qrcode->gif(); //输出<img /> 标签