rodber / php-sse-react
Streaming, async HTML5 Server-Sent Events server (aka. SSE or EventSource)
0.2.0
2023-08-05 23:38 UTC
Requires
- php: >=7.4
- react/event-loop: ^1.4
- react/http: ^1.9
- react/stream: ^1.3
Requires (Dev)
- clue/redis-react: ^2.6
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-11-06 02:08:19 UTC
README
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