sunrise/http-factory

Sunrise HTTP factory for PHP 7.1+ based on PSR-17

v1.0.8 2019-02-25 17:38 UTC

README

Gitter Build Status Latest Stable Version Total Downloads License

Installation

composer require sunrise/http-factory

How to use?

use Sunrise\Http\Factory\RequestFactory;
use Sunrise\Http\Factory\ResponseFactory;
use Sunrise\Http\Factory\ServerRequestFactory;
use Sunrise\Http\Factory\StreamFactory;
use Sunrise\Http\Factory\UploadedFileFactory;
use Sunrise\Http\Factory\UriFactory;

// just use PSR-17 methods...

Based on the following packages

Test run

php vendor/bin/phpunit

Api documentation

https://phpdoc.fenric.ru/

Useful links

https://www.php-fig.org/psr/psr-17/