让你的小程序太阳码飞起来使用!
分享链接:https://packagist.org/packages/james.xue/s...
使用:
user James\SolarCode\SolarCode;
$solar = new SolarCode($token);
$solar->getWxcode('pages/findModule/pages/index/index')->response(); // image()、imagePath()、base64()
A类太阳码:
$solar->getWxcode()
B类太阳码:
$solar->getWxcodeunlimit()
C类太阳码:
$solar->createwxaqrcode()
生成太阳码就这么简单!还可以上传云存储支持oss、cos、public、qiniu、upyun。
文档地址:扩展文档
怎么就飞起来了,跟easywechat比没啥优势.还有建议写明白,只能laravel使用,或者把里边的方法改成不依赖laravel的类,比如 :
Storage
@justmd5 使用 easywechat 只单独生成太阳码是不是大材小用了,而且又不符合php的S.O.L.I.D,还有你提议的不依赖laravel很好