fqapps/swoole-gin-framework

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:project

pkg:composer/fqapps/swoole-gin-framework

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

This package is auto-updated.

Last update: 2025-09-29 02:59:05 UTC


README

teaching repository

How to install

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

How to use

<?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;
    }
}