0.1.2 2022-03-24 16:10 UTC

This package is auto-updated.

Last update: 2024-04-24 20:48:39 UTC


README

You may find couple adapters that adapt guzzlehttp/guzzle to PSR-18. This is a reverse of that. It adapts PSR-18 client to \GuzzleHttp\ClientInterface.

That's needed in case some of your libraries still depend on Guzzle, but you moved away.

For example, I'm using PSR-18 client having plugins and profiler integration and wish to have consistent experience and reuse same stack, instead of having to search for guzzle middleware alternatives and so on just because these libraries still didn't move on.

Install

Via Composer

composer require psr18-adapter/guzzle

Usage

new \Psr18Adapter\Guzzle\GuzzlePsr18Client($psr18Client, $psr7RequestFactory);

Licensing

MIT license. Please see License File for more information.