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

This package is not auto-updated.

Last update: 2024-11-20 15:54:25 UTC


README

Build Status

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

(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