clue / sse-react
Streaming, async HTML5 Server-Sent Events server (aka. SSE or EventSource)
Installs: 12 901
Dependents: 0
Suggesters: 0
Security: 0
Stars: 56
Watchers: 5
Forks: 15
Open Issues: 0
Requires
- php: >=5.3
- react/event-loop: ^1.0
- react/http: ^1.0
- react/stream: ^1.0
Requires (Dev)
- clue/redis-react: ^2.4
- phpunit/phpunit: ^9.6 || ^7.5 || ^4.8.36
This package is auto-updated.
Last update: 2024-12-04 09:13:04 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?
Once released, this project will follow SemVer. At the moment, this will install the latest development version:
{ "require": { "clue/sse-react": "dev-master" } }
This project aims to run on any platform and thus does not require any PHP extensions and supports running on legacy PHP 5.3 through PHP 7.3. It's highly recommended to use the latest supported PHP version for this project.
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, see LICENSE file.