moura137/laravel-elephantio
Laravel Elephant IO
This is a service provider for the Laravel PHP Framework, it provides access to socket.io via ElephantIO. http://elephant.io
Installation
In the require key of composer.json file add the following
"moura137/laravel-elephantio": "~1.0"
or
Require this package with composer:
composer require moura137/laravel-elephantio
In your config/app.php add 'Moura137\LaravelElephant\ElephantServiceProvider' to the end of the $providers array
'providers' => [
...
Moura137\LaravelElephant\ElephantServiceProvider::class,
],
At the end of config/app.php add 'Elephant' => 'Moura137\LaravelElephant\ElephantFacade' to the $aliases array
'aliases' => array(
...
'Elephant' => Moura137\LaravelElephant\ElephantFacade::class,
),
Configuration
Publish config using artisan CLI.
php artisan vendor:publish --provider="Moura137\LaravelElephant\ElephantServiceProvider"
Usage
Elephant::emit('eventMsg', array('foo' => 'bar'));
Related Packages
valorin/random
Random is a simple helper package designed to make it easy to generate a range o...
413,065
233
cline/struct
Lean, attribute-driven Laravel data objects with explicit validation and Eloquen...
17,788
0
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 1.0 | >=5.4.0 | ~5.0 | BSD-3-Clause | |
| 0.1 | >=5.3.0 | ~4.1 | BSD-3-Clause |


