moura137/laravel-elephantio
最新稳定版本:1.0
Composer 安装命令:
composer require moura137/laravel-elephantio
包简介
ElephantIO Service Provider for the Laravel PHP Framework
README 文档
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
"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'));
统计信息
- 总下载量: 6.85k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 10
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2014-06-02