2017 © Pedro Peláez
 

library laravel-faye

Laravel package to easily interact with Faye server.

image

farhatabbas/laravel-faye

Laravel package to easily interact with Faye server.

  • Wednesday, August 31, 2016
  • by farhatabbas
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Installation

Begin by installing this package through Composer. Run this command from the Terminal:, (*1)

composer require farhatabbas/laravel-faye

Laravel integration

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., (*2)

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:, (*3)

'Faye' => Farhatabbas\Faye\Facade\Faye::class,

In Laravel 5 you can publish the default config file to config/faye.php with the artisan command, (*4)

php artisan vendor:publish

Facade

First, include the Facade class at the top of your file:, (*5)

use Farhatabbas\Faye\Facade\Faye;

Usage

Route::get('/',function(){
   Faye::send("/channel", ['data'=>'Hello World!'], ['token'=>'123456789']);
});

The Versions

31/08 2016

dev-master

9999999-dev

Laravel package to easily interact with Faye server.

  Sources   Download

MIT

The Requires

 

by Avatar farhatabbas

laravel faye

31/08 2016

dev-develop

dev-develop

Laravel package to easily interact with Faye server.

  Sources   Download

MIT

The Requires

 

by Avatar farhatabbas

laravel faye

31/08 2016

v0.1.0

0.1.0.0

Laravel package to easily interact with Faye server.

  Sources   Download

MIT

The Requires

 

by Avatar farhatabbas

laravel faye