arslanoov/furious-psr7

PHP 7.4 implementation of PSR-7

1.3.4 2020-07-25 09:52 UTC

This package is auto-updated.

Last update: 2024-11-12 02:09:15 UTC


README

PSR-7 implementation for PHP 7.4+

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

Install:

composer require furious/psr7

Use:

use Furious\Psr7\Factory\ServerRequestFactory;

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

// emitting a response

$someHttpRunner->run($response);