litphp / runner-react
v0.9.0
2019-06-29 13:12 UTC
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: 2024-10-29 05:16:46 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),