ricardofiorani / guzzle-psr18-adapter
A Guzzle PSR-18 adapter
Installs: 280 003
Dependents: 4
Suggesters: 1
Security: 0
Stars: 14
Watchers: 0
Forks: 4
Open Issues: 1
Requires
- php: ^7.1 || ^8.0
- guzzlehttp/guzzle: ^6.3
- psr/http-client: ^1.0
Requires (Dev)
- phpunit/phpunit: ^7.3 || ^9
- spryker/code-sniffer: ^0.12.4 || ^0.14.0 || ^0.15.0
Provides
This package is auto-updated.
Last update: 2024-11-06 16:57:38 UTC
README
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