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-08-29 04:54:28 UTC
README
用法
- 编写一个php文件,调用
ReactRunner::run
并带上您的配置,然后使用php运行它
(见 _example)
默认情况下,监听主机 + 端口从环境变量LISTEN
读取,如果不存在则回退到8080。这可以通过配置覆盖
支持\React\Http\StreamServer
和\React\Http\Server
,使用以下配置项进行切换
// C::join(ReactRunner::class, 'server') => C::alias(StreamingServer::class), C::join(ReactRunner::class, 'server') => C::alias(Server::class),