随笔 - 612, 文章 - 0, 评论 - 31, 阅读 - 74万

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

随笔分类 -  开源项目 - ThinkPHP

摘要:https://www.kancloud.cn/manual/thinkphp6_0/1147857 有时候我们希望使用think的命令行运行workerman,这里做一个介绍, 通过 composer 安装 composer require topthink/think-worker 1:先新建一 阅读全文

posted @ 2022-05-10 15:38 eastson 阅读(542) 评论(0) 推荐(0) 编辑

摘要:ThinkPHP ApiDoc 基于 ThinkPHP 的API接口开发工具 🤷‍♀️ Apidoc是什么? 如今,前后端分离的开发模式以必不可少,基于ThinkPHP可以很方便的作为Api接口的开发。可是一个Api开发过程中需要快速调试,开发完成后需要给其它开发者对接等,这时一个功能全面的Api 阅读全文

posted @ 2022-05-10 13:52 eastson 阅读(1491) 评论(0) 推荐(0) 编辑

摘要:使用Timer创建定时的任务,可以以后台守护进程的方式执行。 Worker::runAll()执行时,会执行其中的parseCommand()方法。 protected static function parseCommand() { // 守护进程执行方式,只会在LINUX系统下才可以 if (s 阅读全文

posted @ 2022-05-10 13:48 eastson 阅读(1049) 评论(0) 推荐(0) 编辑

摘要:使用Workerman的Timer类,可以定时执行某些任务。 1. 建立app/test/command/Hello2.php。 <?php declare (strict_types = 1); namespace app\test\command; use think\console\Comma 阅读全文

posted @ 2022-05-10 11:32 eastson 阅读(2242) 评论(1) 推荐(0) 编辑

摘要:ThinkPHP提供自定义命令功能,参考手册 。 如何自定义TP6的命令,参考thinkphp6 command(自定义指令)。 1. 建立app/test/command/Hello.php。 <?php declare (strict_types = 1); namespace app\test 阅读全文

posted @ 2022-05-10 11:17 eastson 阅读(736) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示