webman mqtt的几种用法

做个备忘录 利用webman启动时自动运行机制 此机制会产生进程数量的链接 // bootstap/Mqtt.php <?php namespace bootstrap; use Webman\Bootstrap; class Mqtt implements Bootstrap { protected static $mqtt = null; protected static $...

sorshion 发表与 2024-05-22 1086 浏览 4 评论
chillerlan/php-qrcode 生成二维码

composer require chillerlan/php-qrcode $data = 'id=100&barn_id=125'; $QRCode = new QRCode(); $img_content = $QRCode->render($data); $img_content = str_replace('data:image/...

不败少龙 发表与 2023-08-16 2112 浏览 5 评论
vscode + xdebug3 使用简版教程

1.安装xdebug3 2.php.ini中xdebug3配置,端口可不改(我本地9003使用了,所以改成了9005),如果不想一直开启可设置 xdebug.start_with_request=trigger 3.vscode配置,安装xdebug扩展后,使用默认即可,端口按步骤2自行修改 4.先启动调试(每次调试前一定要先启动调试) 5.启动webman,如果 xdebug.start_with_requ...

mosquito 发表与 2022-09-26 2125 浏览 3 评论

lsmir2

670
积分
0
获赞数
0
粉丝数
2024-01-29 加入
×
🔝