Skip to content
Simple // HTTP message wrapper for PHP 7.1+ based on RFC-7230, PSR-7 and PSR-17
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data
src
tests
.editorconfig
.gitignore
.scrutinizer.yml
.travis.yml
LICENSE
README.md Update README.md Mar 5, 2019
composer.json
phpunit.xml.dist
renovate.json

README.md

HTTP message wrapper for PHP 7.1+ based on RFC-7230, PSR-7 & PSR-17

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

Awards

SymfonyInsight

Installation

composer require sunrise/http-message

How to use?

HTTP Request Message

use Sunrise\Http\Message\RequestFactory;

$message = (new RequestFactory)->createRequest('GET', 'http://php.net/');

// just use PSR-7 methods...

HTTP Response Message

use Sunrise\Http\Message\ResponseFactory;

$message = (new ResponseFactory)->createResponse(200, 'OK');

// just use PSR-7 methods...

Remaining PSR-7 packages

Test run

php vendor/bin/phpunit

Api documentation

https://phpdoc.fenric.ru/

Useful links

You can’t perform that action at this time.