litphp/lit-swan

This package is abandoned and no longer maintained. The author suggests using the litphp/runner-swoole package instead.

psr-7 middleware runner for swoole-http

dev-master 2015-10-28 11:43 UTC

This package is auto-updated.

Last update: 2022-02-01 12:52:24 UTC


README

PSR-7 style middleware runner for swoole-http

Install

install swoole extension first

pecl install swoole

then Swan

composer require litphp/lit-swan

Usage

<?php

$app = make_your_psr_middleware();

$server = new SwanServer($app, '127.0.0.1', '9501');
$server->start();