Download the PHP package rephp/rephp-swoole without Composer
On this page you can find all versions of the php package rephp/rephp-swoole. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package rephp-swoole
rephp-swoole
一、目录信息
-
src/app 为rephp框架加载安装rephp-swoole后要复制的应用代码
- src/config 为rephp框架安装rephp-swoole后要复制的配置
二、运行
以websocket为例,安装代码完毕后,可通过执行:
-
linux系统 php cmd swoole/websocket/run
- windows系统 swoole-cli cmd swoole/websocket/run
三、应用:
-
所有的逻辑都放在logic文件中,每个文件中只有一个入口函数:doMessasge
- 所有websocket客户端请求都应携带logic参数,对应logic文件名主名如demoLogic
三、请求:
- 以websocket为例,根据配置连接websocket服务端。默认服务端地址为: ws://127.0.0.1:9502
- 发送指定格式json信息为内容到websocket服务端。
All versions of rephp-swoole with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.6.0
The package rephp/rephp-swoole contains the following files
Loading the files please wait ....