litphp / runner-react
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/litphp/runner-react
Requires
- litphp/bolt: ^0.9
- react/http: ^0.8.3
Requires (Dev)
- phpstan/phpstan-phpunit: ^0.11.2
- phpstan/phpstan-shim: ^0.11.7
- phpunit/phpunit: ^7.5
- squizlabs/php_codesniffer: ^3.4
This package is auto-updated.
Last update: 2025-09-29 02:21:01 UTC
README
Usage
- Write a php file calling
ReactRunner::run
with your configuration, then run it with php
(see _example)
By default, the listening host + port is read from environment variable LISTEN
, and fallback to 8080. This can be overridden via configuration
Both \React\Http\StreamServer
and \React\Http\Server
is supported, use following configration entry to switch
// C::join(ReactRunner::class, 'server') => C::alias(StreamingServer::class), C::join(ReactRunner::class, 'server') => C::alias(Server::class),