litphp/runner-react

v0.9.0 2019-06-29 13:12 UTC

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),