Download the PHP package lackone/laravel-gateway-worker without Composer
On this page you can find all versions of the php package lackone/laravel-gateway-worker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download lackone/laravel-gateway-worker
More information about lackone/laravel-gateway-worker
Files in lackone/laravel-gateway-worker
Download lackone/laravel-gateway-worker
More information about lackone/laravel-gateway-worker
Files in lackone/laravel-gateway-worker
Vendor lackone
Package laravel-gateway-worker
Short Description GatewayWorker for laravel
License MIT
Package laravel-gateway-worker
Short Description GatewayWorker for laravel
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-gateway-worker
laravel-gateway-worker
为了在laravel中方便的使用GatewayWorker,于是基于GatewayWorker写了一个扩展。
一、安装
二、配置
1、在 config/app.php 注册 ServiceProvider (Laravel5.5+无需手动注册)
2、创建配置文件
3、修改配置文件
根据需要修改 config/gw.php 中的配置即可 。
三、使用
创建一个用于处理消息的文件,比如 test.php ,存放目录随意,并设置event_namespace命名空间。
前端websocket连接的地址,应该是gw.php配置文件中gateway.url的配置
四、启动
config/gw.php 中可以配置多个配置项
All versions of laravel-gateway-worker with dependencies
PHP Build Version
Package Version
Requires
workerman/gateway-worker Version
^3.0
The package lackone/laravel-gateway-worker contains the following files
Loading the files please wait ....