PHPackages                             manfal/sse - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. manfal/sse

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

manfal/sse
==========

SSE is a Laravel wrapper for PHP Library LibSSE for implementing asynchronous Server Sent Events and pass them on to views.

63.5k3[1 issues](https://github.com/MAnfal/sse/issues)[1 PRs](https://github.com/MAnfal/sse/pulls)PHP

Since Sep 11Pushed 10y agoCompare

[ Source](https://github.com/MAnfal/sse)[ Packagist](https://packagist.org/packages/manfal/sse)[ RSS](/packages/manfal-sse/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

sse
===

[](#sse)

SSE is a Laravel wrapper for PHP Library LibSSE for implementing asynchronous Server Sent Events and pass them on to views.

Laravel Supported versions
--------------------------

[](#laravel-supported-versions)

Laravel: 5.1

Stability
---------

[](#stability)

Stable

Installing SSE
--------------

[](#installing-sse)

Use composer to download latest package to laravel installation

```
	composer require manfal/sse
```

or manually add package in require array of composer.json

```
    "manfal/sse": "dev-master"
```

and run

```
	composer update
```

place following service provider in config/app.php folder under providers array.

```
	'manfal\sse\SSEServiceProvider'
```

place following facades in config/app.php folder under aliases array.

```
	'SSE' => 'manfal\sse\SSEFacade',
	'SSEEvent' => 'manfal\sse\SSEEventFacade'
```

Usage
-----

[](#usage)

1. Create a new view in resources/views directory, name it ssedemo.blade.php and place following HTML and JS snippet.

```

	var source = new EventSource('{!!url("/ssedemo")!!}');
	var d = document.getElementById('time');
	source.addEventListener('time',function(e){
		var time = e.data;
		d.innerHTML = time;
	},false);

```

2. Create a new controller via artisan CLI

```
$>	php artisan make:controller SSEDemoController
```

3. Place following code in SSEDemoController

```
	exec_limit=10;
		            $sse->addEventListener('time',new TimeEvent());
		            $sse->start();
		    }
		}
```

4. Create a new route in app/Http/routes.php

```
	Route::get('/ssedemo', 'SSEDemoController@sseCheck');
```

5. Refresh your browser.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/c8f00930d498018f9db80e1c97f9dd9fe4f768f918318a5dabf3f0dc73a55112?d=identicon)[MAnfal](/maintainers/MAnfal)

---

Top Contributors

[![MAnfal](https://avatars.githubusercontent.com/u/5080688?v=4)](https://github.com/MAnfal "MAnfal (27 commits)")

### Embed Badge

![Health badge](/badges/manfal-sse/health.svg)

```
[![Health](https://phpackages.com/badges/manfal-sse/health.svg)](https://phpackages.com/packages/manfal-sse)
```

###  Alternatives

[rogervila/array-diff-multidimensional

Compare the difference between two multidimensional arrays

1144.9M18](/packages/rogervila-array-diff-multidimensional)[gwk/ip_address

IP address handling library

1011.9k](/packages/gwk-ip-address)[art/breadcrumbs-bundle

Breadcrumbs bundle for Symfony2

143.2k](/packages/art-breadcrumbs-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
