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

ActiveLibrary

hosmelq/sse
===========

A PHP library for consuming Server-Sent Events (SSE) streams with WHATWG compliance.

v0.1.0(10mo ago)143.6k↓19.2%MITPHPPHP ^8.2CI passing

Since Jul 14Pushed 10mo agoCompare

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

READMEChangelog (1)Dependencies (17)Versions (2)Used By (0)

PHP SSE
=======

[](#php-sse)

Consume Server-Sent Events (SSE) with PHP.

Features
--------

[](#features)

- **WHATWG Compliant** - Implements the [Server-Sent Events specification](https://html.spec.whatwg.org/multipage/server-sent-events.html).
- **Memory Efficient** - Generator-based event iteration for low memory usage.

Requirements
------------

[](#requirements)

- PHP 8.2 or higher.

Installation
------------

[](#installation)

Install via Composer:

```
composer require hosmelq/sse
```

Quick Start
-----------

[](#quick-start)

```
