Download the PHP package anlity/yii2-swoole-async-timer without Composer
On this page you can find all versions of the php package anlity/yii2-swoole-async-timer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download anlity/yii2-swoole-async-timer
More information about anlity/yii2-swoole-async-timer
Files in anlity/yii2-swoole-async-timer
Download anlity/yii2-swoole-async-timer
More information about anlity/yii2-swoole-async-timer
Files in anlity/yii2-swoole-async-timer
Vendor anlity
Package yii2-swoole-async-timer
Short Description 用于异步处理任务和需要定时器完成的任务
License BSD-4-Clause
Homepage https://github.com/anlityli/yii2-swoole-async-timer
Package yii2-swoole-async-timer
Short Description 用于异步处理任务和需要定时器完成的任务
License BSD-4-Clause
Homepage https://github.com/anlityli/yii2-swoole-async-timer
Please rate this library. Is it a good library?
Informations about the package yii2-swoole-async-timer
yii2-swoole-async-timer
用于异步处理任务和需要定时器完成的任务
Installation
在mevyen的项目(代码中已保留原作者)的基础上加了一个定时器的功能,也就是打开swoole服务的时候开启一个定时器,来解决一些需要定时完成的任务,2018年4月9日加入了WebSocket的功能,服务端改为了WebSocket,可以监听客户端发来的消息,和向客户端发送消息。
安装
或者 添加
到你的 yii2 根目录 composer.json
文件里.
如何使用
1、新增配置文件params-swoole.php
2、console的main.php文件引入新增的配置文件,配置文件参考 params-swoole-default.php
3、在站点主配置文件(main.php)controllerMap
4、在站点主配置文件(main.php)中增加components
5、从目录common/components/新建SwooleAsyncTimer类,类内容:
6、服务管理
7、执行异步任务可以 ``
8、给客户端发送消息可以 ``
9、从服务端给webSocket客户端发送消息 ``
10、无人值守 `
All versions of yii2-swoole-async-timer with dependencies
PHP Build Version
Package Version
Requires
yiisoft/yii2 Version
~2.0.0
The package anlity/yii2-swoole-async-timer contains the following files
Loading the files please wait ....