fqapps/swoole-gin-framework

v1.0.0 2022-04-01 06:18 UTC

This package is auto-updated.

Last update: 2024-09-29 06:09:06 UTC


README

教学仓库

如何安装

$ composer create-project lazychanger/swoole-gin-framework

如何使用

<?php
declare(strict_types=1);

class HelloAction implements \SwooleGin\HandlerFuncInterface
{

    public function __invoke(\Psr\Http\Message\ResponseInterface $rw, \Psr\Http\Message\RequestInterface $req)
    {
        $rw->withBody(new \SwooleGin\Stream\StringStream('Hello World'));
        return $rw;
    }
}