
Thinkphp
恶魔楚轩
各位观众姥爷们,欢迎点赞和评论指正哦
展开
-
thinkphp集成mqtt订阅
网上找的mqtt类:https://github.com/bluerhinos/phpMQTT/blob/master/phpMQTT.php用的thinkphp5.0,下载后放入extend文件夹下。新建控制器 application/lora/controller/SubController.php<?phpnamespace app\lora\controller;use...原创 2019-10-18 16:09:04 · 3392 阅读 · 1 评论 -
thinkphp5+workerman集成workerman/mqtt爬坑笔记
1. thinkphp5.0安装workerman composer require topthink/think-worker=1.0.*(tp5.0安装workerman时要指定版本号,不然会报错)2. 安装workerman/mqttcomposer require workerman/mqtt按照官方文档http://doc3.workerman.net/69663...原创 2020-01-06 15:51:09 · 3549 阅读 · 1 评论 -
thinkphp5.1数据库迁移工具migration的安装与使用
1.安装composer require topthink/think-migration v2.0.32.php think命令查看是否安装成功从图中我们可以看到 migration 和 seed ,表示安装成功了3.创建迁移文件php think migrate:create TableName(TableName格式为大驼峰)第一次执行 Migraton 它...原创 2020-02-26 11:06:19 · 1749 阅读 · 0 评论 -
thinkphp6利用workerman实现定时任务
1.根据官方文档安装好workerman,配置好tp6配置文件2.贴执行文件代码<?phpnamespace app\http;use think\worker\Server;use Workerman\Lib\Timer;class Haha extends Server{ //写一个假的监听地址 protected $socket = 'http://127....原创 2020-04-13 14:32:11 · 3579 阅读 · 0 评论