nc/elephantio-bundle
最新稳定版本:v2.1.0
Composer 安装命令:
composer require nc/elephantio-bundle
包简介
Elephant IO integration in Symfony2
README 文档
README
Elephant.io library integration in symfony2.
This bundle allows you to communicate with a socket.io server (0.x or 1.x) from a Symfony2 application.
Installation
composer require nc/elephantio-bundle
In your AppKernel
public function registerbundles() { return [ ... ... new Nc\Bundle\ElephantIOBundle\NcElephantIOBundle(), ]; }
Configuration sample
nc_elephant_io: clients: default: connection: http://192.168.0.14:3006 # specify version 0.x for 0.* version and 1.x for 1.0 version version: 0.x your_key: connection: http://192.168.0.14:3000 version: 1.x Usage
$client = $this->get('elephantio_client.your_key'); $client->send('event_name', ['foo' => 'test']); More complex usage
$client = $this->get('elephantio_client.your_key'); $elephantIOClient = $client->getElephantIO(); // Refer to Elephant.io doc Contribute ?
If you want to improve this bundle, you can use github pull-request and issue
统计信息
- 总下载量: 84.51k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 20
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04