Skip to content

An implementation of PSR-7 Http Message and PSR-17 Http Factories

License

Notifications You must be signed in to change notification settings

IngeniozIT/psr-http-message

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PSR Message

An implementation of the PSR-7 Http Message interfaces and the PSR-17 Http Factories interfaces that focuses on code quality.

About

Info Value
Latest release Packagist Version
Requires PHP from Packagist
License Packagist
Unit tests tests
Code coverage Code Coverage
Code quality code-quality
Quality tested with phpunit, phan, psalm, phpcs, phpstan, phpmd, infection

Installation

composer require ingenioz-it/http-message

Extra feature

This implementation strictly follows the PSR-7 and PSR-17 specifications, but it also provides one useful extra feature: the ability to create a ServerRequest from the global variables.

use IngeniozIT\Http\Message\ServerRequestFactory;

$factory = new ServerRequestFactory(/* ... */);
$serverRequest = $factory->fromGlobals($GLOBALS);

Full documentation

You can list all the available features by running

composer testdox