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.5k↓100%3[1 PRs](https://github.com/MAnfal/sse/pulls)PHP

Since Sep 11Pushed 9y ago1 watchersCompare

[ Source](https://github.com/MAnfal/sse)[ Packagist](https://packagist.org/packages/manfal/sse)[ RSS](/packages/manfal-sse/feed)WikiDiscussions master Synced 1mo 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

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community9

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

[kartik-v/yii2-widget-switchinput

A Yii2 wrapper widget for the Bootstrap Switch plugin to use checkboxes &amp; radios as toggle switchinputes (sub repo split from yii2-widgets)

384.4M13](/packages/kartik-v-yii2-widget-switchinput)[magenerds/germanlaw

This module provides general settings for german stores

2178.6k](/packages/magenerds-germanlaw)

PHPackages © 2026

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