eaglexpf/rocqrcode

dev-master 2018-06-25 02:50 UTC

This package is auto-updated.

Last update: 2024-12-25 13:55:38 UTC


README

php生成二维码

composer require eaglexpf/rocqrcode @dev


$code = "qrcode";
$file = __DIR__."/../../webserver/".urlencode($code).".png";
$qrcode = RocQrCode::png($code,$file,0,10,1);//不需要保存图片的话$file传入false
Http::header("Content-type: image/png");
return $connection->send($qrcode);