sammaye/yii2-elephantio
最新稳定版本:1.0
Composer 安装命令:
composer create-project sammaye/yii2-elephantio
包简介
A plugin for using Elephant IO with Yii2
README 文档
README
Yii2 Elephant IO implementation.
This is a really dirt simple extension which just wraps the Elephant IO module into a Yii2 Component.
You can configure it in your application configuration like so:
'elephantio' => [
'class' => 'sammaye\elephantio\ElephantIo',
'host' => 'http://localhost:3000'
]
Adding it to your components array.
Note: Elephant IO only supports websockets.
You can use it like so:
Yii::$app->elephantio->emit('some event', ['param1' => 'value1']);
Yii::$app->elephantio->read();
And that's it...literally.
统计信息
- 总下载量: 8.33k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 11
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2015-03-31