sunrise/http-server-request

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

v2.0.0 2021-10-26 00:12 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...

HTTP headers as objects

Related PSR-7 packages

Test run

composer test

Useful links