litphp/runner-swoole

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

This package is auto-updated.

Last update: 2024-03-29 03:57:54 UTC


README

Usage

  • Install swoole (with pecl: pecl install swoole)
  • Write a php file calling SwooleRunner::run with your configuration, then run it with php

(see _example)

By default, the listening host & port is read from environment variable HOST / PORT, and fallback to localhost:8080. This can be overridden via configuration