您现在的位置是:ThinkPHP 5.1.30 引入phpqrcode显示二维码
ThinkPHP 5.1.30 引入phpqrcode显示二维码
TP5.1取消了Loader和vendor, 可以使用extend加载第三方类
一、下载phpqrcode.php,重命名为QRcode.php
二、放置到\extend\phpqrcode\QRcode.php
三、在QRcode.php第一行增加一句
namespace phpqrcode;
四、在控制器引入
use phpqrcode\QRcode;
五、在代码中调用
public function index() { // $qrcode = new Qrcode(); QRcode::png('test'); }
随便看看
- [emerg] (43)Identifier removed: couldn't grab the accept mutex
- Cacti修改MySQL数据库默认字符集
- 用find查找文本内容
- MySQL字符集latin1导出中文乱码
- Cacti配置远程MySQL
- PHP获取当前页面url
- MySQL(root用户)密码重置
- 微信html弹出点击右上角分享到朋友圈
- PHP常用的header头部定义汇总
- php接收json或者xml数据
- 构建微信公众号被动回复news多图文消息xml
- 构建微信公众号被动回复image图片消息xml
- Apache禁用TRACE Method和添加X-frame-options响应头
- 从MySQL日志中恢复数据
- Binary file (standard input) matches
站长简介
分类
最新文章
热门文章
- 微信支付退款结果通知解密
- Linux修改密码提示passwd /usr/share/cracklib/pw_dict: error reading header
- 到ICANN投诉三五互联获取域名转移密码成功
- {"errcode":45047,"errmsg":"out of response count limit hint]"}
- 微信html弹出点击右上角分享到朋友圈
- CentOS使用chkconfig提示systemctl enable xxxx.service
- PHP将B转换为KB、MB、GB
- Apache禁用TRACE Method和添加X-frame-options响应头
- mysqld_safe Number of processes running now
- 构建微信公众号被动回复image图片消息xml