arslanoov/furious-psr7

PHP 7.4 版本的 PSR-7 实现

1.3.4 2020-07-25 09:52 UTC

This package is auto-updated.

Last update: 2024-09-12 01:50:20 UTC


README

PHP 7.4+ 的 PSR-7 实现

Latest Version Build Status Code Intelligence Status Quality Score Maintainability Total Downloads Monthly Downloads Software License

安装

composer require furious/psr7

使用

use Furious\Psr7\Factory\ServerRequestFactory;

$request = (new ServerRequestFactory)->fromGlobals();
$response = /* get response by request */

// emitting a response

$someHttpRunner->run($response);