PHPackages                             sse/libsse - 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. sse/libsse

ActiveLibrary

sse/libsse
==========

0281PHP

Since Jan 20Pushed 11y ago1 watchersCompare

[ Source](https://github.com/M1ke/libSSE-php)[ Packagist](https://packagist.org/packages/sse/libsse)[ RSS](/packages/sse-libsse/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

libSSE-php
==========

[](#libsse-php)

An easy-to-use, object-orienlated library for Server-Sent Events

Updates
=======

[](#updates)

1. Add new functionality: cross-script communication is now possible with SSEData.
2. Add example that demostratrs the new functionality: a chatroom build with libSSE in less than 100 lines of PHP code!
3. Cleaner code
4. Add documentation. [Check it here](https://github.com/licson0729/libSSE-php/wiki/libSSE-docs)
5. Improved code on output buffering.

Development
===========

[](#development)

This is an active project. If you want to help me please suggest ideas to me and track issues or find bugs. If you like it, please consider star it to let more people know.

Quick use
=========

[](#quick-use)

Server-side(PHP):

```

```

Client-side(javascript):

```
var sse = new EventSource('path/to/your/sse/script.php');
sse.addEventListener('event_name',function(e){
	var data = e.data;
	//handle your data here
},false);

```

Settings
========

[](#settings)

After you created the libSSE instance, there's some settings for you to control the behaviour. Below is the settings provided by the library.

```

```

Compatibility
=============

[](#compatibility)

Because server-sent events is a new standard and still in flux, only certain browsers support it. However, polyfill for server-sent events is avaliable. Also on shared hosting, it may disable PHP's `set_time_limit` function and the library may not work as excepted. There's some settings in the library that can fix it.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.9% 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/6e13cb42c1a004c15c986cc3ac59424757dd04b25ed4068146e41812f0410338?d=identicon)[m1ke](/maintainers/m1ke)

---

Top Contributors

[![licson](https://avatars.githubusercontent.com/u/1832745?v=4)](https://github.com/licson "licson (30 commits)")[![M1ke](https://avatars.githubusercontent.com/u/1226123?v=4)](https://github.com/M1ke "M1ke (3 commits)")

### Embed Badge

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

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

PHPackages © 2026

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