1.基本的简单使用:讲解链接
1.1composer安装依赖
composer require simplesoftwareio/simple-qrcode 1.3.*
1.2、安装&配置
1.2.1在 config/app.php/providers中 注册服务提供者
:
SimpleSoftwareIOQrCodeQrCodeServiceProvider::class
1.2.2同样在 config/app.php 添加 QrCode 门面
:
'QrCode' => SimpleSoftwareIOQrCodeFacadesQrCode::class
2在控制器中的简单使用
引用类:
use SimpleSoftwareIOQrCodeFacadesQrCode;
return QrCode::encoding('UTF-8')->size(100)->generate('测试,生成二维码');
2.1输出效果展示:
