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

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

volkerschulz/sse-client
=======================

Client for Server-Sent Events

0.9.2(1y ago)13841MITPHPPHP &gt;=8.1.0

Since Feb 4Pushed 1y ago1 watchersCompare

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

READMEChangelog (3)Dependencies (1)Versions (6)Used By (0)

SseClient
=========

[](#sseclient)

Client to receive server-sent events (from OpenAI API runner for example)

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

[](#installation)

The recommended way to install SseClient is through [Composer](https://getcomposer.org/).

```
composer require volkerschulz/sse-client
```

Usage
-----

[](#usage)

Minimal:

```
use volkerschulz\SseClient;

$client = new SseClient('https://example.com');
foreach($client->getEvents() as $event) {
    // Handle single event
    echo $event->getData();
}
```

POST request w/ options:

```
use volkerschulz\SseClient;

$sse_options = [
    'reconnect' => false,
    'read_timeout' => 5
];

$client = new SseClient('https://example.com', $sse_options);

$http_options = [
    'json' => [
        'foo' => 'bar'
    ],
    'allow_redirects' => false
];

foreach($client->getEvents($http_options, 'POST') as $event) {
    // Handle single event
}
```

[List of all options](/docs/options.md)

Security
--------

[](#security)

If you discover a security vulnerability within this package, please send an email to . All security vulnerabilities will be promptly addressed. Please do not disclose security-related issues publicly until a fix has been announced.

License
-------

[](#license)

This package is made available under the MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance44

Moderate activity, may be stable

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 73.3% 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.

###  Release Activity

Cadence

Every ~2 days

Total

3

Last Release

463d ago

PHP version history (2 changes)0.9.0PHP &gt;=8.0.0

0.9.2PHP &gt;=8.1.0

### Community

Maintainers

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

---

Top Contributors

[![Studio2B-GmbH](https://avatars.githubusercontent.com/u/67360570?v=4)](https://github.com/Studio2B-GmbH "Studio2B-GmbH (11 commits)")[![volkerschulz](https://avatars.githubusercontent.com/u/38070181?v=4)](https://github.com/volkerschulz "volkerschulz (4 commits)")

### Embed Badge

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

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

###  Alternatives

[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[omniphx/forrest

A Laravel library for Salesforce

2724.4M8](/packages/omniphx-forrest)[akamai-open/edgegrid-client

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client\_Auth.html

482.5M6](/packages/akamai-open-edgegrid-client)[muhammadhuzaifa/telescope-guzzle-watcher

Telescope Guzzle Watcher provide a custom watcher for intercepting http requests made via guzzlehttp/guzzle php library. The package uses the on\_stats request option for extracting the request/response data. The watcher intercept and log the request into the Laravel Telescope HTTP Client Watcher.

98239.8k1](/packages/muhammadhuzaifa-telescope-guzzle-watcher)[onesignal/onesignal-php-api

A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

34170.2k2](/packages/onesignal-onesignal-php-api)[ory/hydra-client-php

Documentation for all of Ory Hydra's APIs.

1710.8k](/packages/ory-hydra-client-php)

PHPackages © 2026

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