An open API service indexing awesome lists of open source software.

https://github.com/gergesshamon/sse-client


https://github.com/gergesshamon/sse-client

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

          

# SseClient
This is a PHP client library for iterating over http Server Sent Event (SSE) streams (also known as EventSource, after the name of the Javascript interface inside browsers).

## Installation

Use composer to install the library and all its dependencies:

composer require gerges/sse-client
## Example Usage

```php
$client = new SseClient\Client('https://eventsource.firebaseio-demo.com/.json');

foreach ($client->getEvents() as $event) {
var_dump($event);
}
```