edsonalvesan / laravel-elephantio
ElephantIO Service Provider for the Laravel PHP Framework
Installs: 153
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 7
pkg:composer/edsonalvesan/laravel-elephantio
Requires
- php: >=5.4.0
- laravel/framework: *
- wisembly/elephant.io: ~3.0
Requires (Dev)
- mockery/mockery: 0.7.2
- phpunit/phpunit: 4.0.*
- satooshi/php-coveralls: dev-master
This package is auto-updated.
Last update: 2025-09-29 02:22:06 UTC
README
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
"edsonalvesan/laravel-elephantio": "~1.0"
or
Require this package with composer:
composer require edsonalvesan/laravel-elephantio
In your config/app.php
add 'EdsonAlvesan\LaravelElephant\ElephantServiceProvider'
to the end of the $providers
array
'providers' => [ ... EdsonAlvesan\LaravelElephant\ElephantServiceProvider::class, ],
At the end of config/app.php
add 'Elephant' => 'EdsonAlvesan\LaravelElephant\ElephantFacade'
to the $aliases
array
'aliases' => array( ... 'Elephant' => EdsonAlvesan\LaravelElephant\ElephantFacade::class, ),
Configuration
Publish config using artisan CLI.
php artisan vendor:publish --provider="EdsonAlvesan\LaravelElephant\ElephantServiceProvider"
Usage
Elephant::emit('eventMsg', array('foo' => 'bar'));