sunrise/http-server-request

HTTP server request wrapper for PHP 7.1+ based on PSR-7 and PSR-17

v2.2.1 2022-04-19 19:10 UTC

README

Build Status Code Coverage Scrutinizer Code Quality Total Downloads Latest Stable Version License

Installation

composer require 'sunrise/http-server-request:^2.0'

How to use?

use Sunrise\Http\ServerRequest\ServerRequestFactory;

$request = ServerRequestFactory::fromGlobals();

// just use PSR-7 methods...

Related packages

Headers as objects

Test run

composer test

Useful links