subscribo / psr-http-message-tools
Tools which could be used with PSR-7: Request factory, Uri factory, Response parser
v0.4.4
2016-06-21 18:35 UTC
Requires
- php: >=5.4
- psr/http-message: ^1.0
- zendframework/zend-diactoros: ~1.1.3 || ~1.3.5
Requires (Dev)
- phpunit/phpunit: <5.0
This package is not auto-updated.
Last update: 2024-11-20 15:54:25 UTC
README
Package Subscribo PsrHttpMessageTools is providing following tools to be used with PSR-7 compliant classes:
- Request Factory
- Uri Factory
- Response Parser
Important notes:
- This is a beta version.
- This is an auxiliary package with limited functionality
Installing
Add dependency on this package to your composer.json:
"require": { "subscribo/psr-http-message-tools": "^0.4.3" }
Requirements
- PHP 5.4 or higher
- zendframework/zend-diactoros
- psr/http-message
(Package dependencies are installed by composer.)
Usage
Factory
$request = \Subscribo\PsrHttpMessageTools\Factories\RequestFactory::make($uri, $data);
Parser
$data = \Subscribo\PsrHttpMessageTools\Parsers\ResponseParser::extractDataFromResponse($response);
Contributing
For contribution guidelines see CONTRIBUTING.md
License
Package Subscribo PsrHttpMessageTools is published under MIT License