PHP生成圆角二维码logo
PHP生成圆角二维码logo
composer require lorysoftwareio/simple-qrcode
如果出现持续安装不了可以用此命令:
composer config repo.packagist composer https://packagist.phpcomposer.com
通过以下php代码生成圆角logo二维码:
$cornerimg = public_path("/img/corner.png"); //圆角透明图片 $logoimg = public_path("/img/logo.png"); // logo图片 echo Qrcode::format('png')->size(100)->cornergenerate('https://www.hao123.com', $cornerimg, $logoimg,public_path("/img/logo.png"));
corner.png:
运行代码后生成以下:
本人开源生成圆边二维码的Laravel 扩展 https://github.com/akidongzi/lory-qrcode
拼搏在路上