Skip to content

sdvallejo/yii2-elephantio

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

yii2-elephantio

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.

About

Yii2 Elephant IO implementation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%