sammaye/yii2-elephantio

A plugin for using Elephant IO with Yii2

Installs: 8 250

Dependents: 0

Suggesters: 0

Security: 0

Stars: 10

Watchers: 2

Forks: 8

Open Issues: 1

Type:project

pkg:composer/sammaye/yii2-elephantio

1.0 2017-05-18 19:13 UTC

This package is not auto-updated.

Last update: 2025-10-11 22:50:41 UTC


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.