PHPackages                             todstoychev/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. [HTTP &amp; Networking](/categories/http)
4. /
5. todstoychev/sse

ActiveLibrary[HTTP &amp; Networking](/categories/http)

todstoychev/sse
===============

Server sent events library.

07PHP

Since May 24Pushed 8y ago1 watchersCompare

[ Source](https://github.com/todstoychev/sse)[ Packagist](https://packagist.org/packages/todstoychev/sse)[ RSS](/packages/todstoychev-sse/feed)WikiDiscussions master Synced today

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

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

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/a4d5af278828b70e08928a5c1a6b33975cb9709ef0829d4822b5b083887a410f?d=identicon)[todstoychev](/maintainers/todstoychev)

---

Top Contributors

[![todstoychev](https://avatars.githubusercontent.com/u/4498971?v=4)](https://github.com/todstoychev "todstoychev (2 commits)")

### Embed Badge

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

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

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M317](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M292](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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