2017 © Pedro Peláez
 

library laravel-sse

image

tonyhhyip/laravel-sse

  • Thursday, August 18, 2016
  • by tonyhhyip
  • Repository
  • 1 Watchers
  • 6 Stars
  • 462 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 3 Versions
  • 4 % Grown

The README.md

Larave SSE

This library provides Server Sent Event for Laravel using libSSE-php, (*1)

Supported Laravel Version

  • 5.1 (Higher Priority)
  • 5.2
  • 5.0

Install - Composer

To install Laravel SSE as a Compsoer package to be used in Laravel 5, simply add this to your composer.json:, (*2)

"tonyhhyip/laravel-sse": "~1.0"

and run composer update., (*3)

Once it is installed, you can register the SseServiceProvider in app/config/app.php in providers array. If you want, you can also add the alias SSE:, (*4)

'providers' => [
    ...
    Sse\Laravel\SseServiceProvider::class
],
'alias' => [
    ...
    'SSE' => Sse\Laravel\Facade\SSE::class
]

Usage

You can inject the SSE in your controller, (*5)


class HomeController extends Controller { public function sse(SSE $sse) { // Add your event listener return $sse->createResponse(); } }

The Versions

18/08 2016

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

18/08 2016

1.0.1

1.0.1.0

  Sources   Download

MIT

The Requires

 

12/06 2016

1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires