讲解链接

1.1composer安装依赖

composer require simplesoftwareio/simple-qrcode 1.3.*

1.2、安装&配置

1.2.1在 config/app.php/providers中 注册服务提供者

SimpleSoftwareIO\QrCode\QrCodeServiceProvider::class

1.2.2同样在 config/app.php 添加 QrCode 门面

'QrCode' => SimpleSoftwareIO\QrCode\Facades\QrCode::class

2在控制器中的简单使用

引用类:
use SimpleSoftwareIO\QrCode\Facades\QrCode;

return QrCode::encoding('UTF-8')->size(100)->generate('测试,生成二维码');

2.1输出效果展示:

Simple QrCode 扩展包生成二维码详解

相关文章:

  • 2021-12-09
  • 2021-11-21
  • 2021-11-21
  • 2021-12-27
  • 2021-09-01
  • 2021-07-24
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-31
  • 2021-10-30
  • 2021-10-18
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案