| Package Data | |
|---|---|
| Maintainer Username: | farhatabbas |
| Maintainer Contact: | fa@inquiron.com (farhatabbas) |
| Package Create Date: | 2016-08-31 |
| Package Last Update: | 2016-08-31 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-03 15:22:15 |
| Package Statistics | |
|---|---|
| Total Downloads: | 9 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 0 |
| Total Watchers: | 1 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
Begin by installing this package through Composer. Run this command from the Terminal:
composer require farhatabbas/laravel-faye
To wire this up in your Laravel project, whether it's built in Laravel 5, you need to add the service provider.
Open config/app.php, and add a new item to the providers array.
Farhatabbas\Faye\FayeServiceProvider::class,
There's a Facade class available for you, if you like. In your app.php config file add the following
line to the aliases array if you want to use a short class name:
'Faye' => Farhatabbas\Faye\Facade\Faye::class,
In Laravel 5 you can publish the default config file to config/faye.php with the artisan command
php artisan vendor:publish
First, include the Facade class at the top of your file:
use Farhatabbas\Faye\Facade\Faye;
Route::get('/',function(){
Faye::send("/channel", ['data'=>'Hello World!'], ['token'=>'123456789']);
});