Skip to content

ricardofiorani/guzzle-psr18-adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

guzzle-psr18-adapter

Build Status Minimum PHP Version License Total Downloads Coding Standards

A (very) simple guzzle PSR-18 adapter.

Requirements

  • PHP ^7.1 || ^8.0
  • Guzzle ^6.3

Install

Via Composer

$ composer require ricardofiorani/guzzle-psr18-adapter

Usage

$client = new \RicardoFiorani\GuzzlePsr18Adapter\Client();
$request = new \Your\Implementation\Of\Psr7\Request();
try {
    echo $client->sendRequest($request);
} catch (\Psr\Http\Client\ClientExceptionInterface $exception) {
    // your error handling
}

For futher documentation please see http://docs.guzzlephp.org/en/stable/

Testing

$ composer test

Credits