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)14431MITPHPPHP &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 today

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

29

—

LowBetter than 57% of packages

Maintenance41

Moderate activity, may be stable

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

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

509d ago

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

0.9.2PHP &gt;=8.1.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/38070181?v=4)[volkerschulz](/maintainers/volkerschulz)[@volkerschulz](https://github.com/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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[guzzlehttp/guzzle-services

Provides an implementation of the Guzzle Command library that uses Guzzle service descriptions to describe web services, serialize requests, and parse responses into easy to use model structures.

25711.0M191](/packages/guzzlehttp-guzzle-services)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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