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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package msg

Panda消息扩展

使用workerman进一步封装,单向推送给客户端,服务端代码可自由发挥实现,该扩展只实现单向通知客户端

使用方式

  1. composer require panda-zhy/msg
  2. php 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
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package panda-zhy/msg contains the following files

Loading the files please wait ...