rodber/php-sse-react

Streaming, async HTML5 Server-Sent Events server (aka. SSE or EventSource)

0.2.0 2023-08-05 23:38 UTC

This package is auto-updated.

Last update: 2024-04-06 01:00:29 UTC


README

CI status installs on Packagist

Streaming, async HTML5 Server-Sent Events server (aka. SSE or EventSource), built on top of React PHP.

Note: This project is in early alpha stage! Feel free to report any issues you encounter.

Quickstart example

See the examples.

Install

The recommended way to install this library is through composer. New to composer?

{
    "require": {
        "clue/sse-react": "dev-master"
    }
}

Tests

To run the test suite, you first need to clone this repo and then install all dependencies through Composer:

composer install

To run the test suite, go to the project root and run:

php vendor/bin/phpunit

License

MIT