chillerlan/php-qrcode 生成二维码

不败少龙

composer require chillerlan/php-qrcode

        $data = 'id=100&barn_id=125';
        $QRCode = new QRCode();
        $img_content = $QRCode->render($data);
        $img_content = str_replace('data:image/png;base64,', '', $img_content);
        return response(base64_decode($img_content), 200, ['Content-Type' => 'image/png']);
352 1 3
1个评论

JackDx

好用~~

  • 暂无评论

不败少龙

8454
积分
0
获赞数
0
粉丝数
2018-08-17 加入
🔝