Package Data | |
---|---|
Maintainer Username: | moura137 |
Package Create Date: | 2014-06-01 |
Package Last Update: | 2018-02-14 |
Language: | PHP |
License: | BSD-3-Clause |
Last Refreshed: | 2024-11-15 03:02:04 |
Package Statistics | |
---|---|
Total Downloads: | 6,661 |
Monthly Downloads: | 16 |
Daily Downloads: | 0 |
Total Stars: | 9 |
Total Watchers: | 4 |
Total Forks: | 7 |
Total Open Issues: | 3 |
This is a service provider for the Laravel PHP Framework, it provides access to socket.io via ElephantIO. http://elephant.io
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,
),
Publish config using artisan CLI.
php artisan vendor:publish --provider="Moura137\LaravelElephant\ElephantServiceProvider"
Elephant::emit('eventMsg', array('foo' => 'bar'));