Download the PHP package panda-zhy/msg without Composer
On this page you can find all versions of the php package panda-zhy/msg. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download panda-zhy/msg
More information about panda-zhy/msg
Files in panda-zhy/msg
Download panda-zhy/msg
More information about panda-zhy/msg
Files in panda-zhy/msg
Please rate this library. Is it a good library?
Informations about the package msg
Panda消息扩展
使用workerman进一步封装,单向推送给客户端,服务端代码可自由发挥实现,该扩展只实现单向通知客户端
使用方式
composer require panda-zhy/msgphp think panda:create 该命令操作会自动创建workerman启动文件以及生成gateway进程启动脚本、businessWorker进程启动脚本、注册服务启动脚本
消息类型
用不用都行随自己,可以自己定义类型,参数格式不可边其他随意
| 类型 | 译文 | 详细参数 | 参数说明 |
|---|---|---|---|
| ping | 心跳检测 | 无 | 无 |
| system | 系统通知 | [自定义二级消息类型] 例如:["type":"system_friend_apply'","data":["自定义参数":"自定义参数"],"msg":"xxx申请加你好友"] | 例如: 站内通知、订单通知、好友通知等 |
| chat | 聊天通知 | [自定义二级消息类型] 例如:["type":"image","data":["自定义参数":"自定义参数"],"msg":"xxx发来一张图片"] | 聊天框内的通知 |
| chatPrompt | 聊天提示 | [自定义二级消息类型] 例如:["type":"reservation","data":["自定义参数":"自定义参数"],"msg":"xxx向你发起了预约"] | 聊天框内的提示 |
All versions of msg with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.0
workerman/gateway-worker Version ^3.0
workerman/gatewayclient Version 3.0.0
topthink/framework Version ^5.1.10 || ^6.0.0
workerman/gateway-worker Version ^3.0
workerman/gatewayclient Version 3.0.0
topthink/framework Version ^5.1.10 || ^6.0.0
The package panda-zhy/msg contains the following files
Loading the files please wait ...