litphp/runner-swoole

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

This package is auto-updated.

Last update: 2024-10-29 05:16:43 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