psr18-adapter / guzzle
Installs: 10 254
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 0
Requires
- php: >=7.3
- guzzlehttp/guzzle: >=6.5.0
- guzzlehttp/psr7: >=1.7.0
- psr/http-client: ^1.0
- psr/http-factory: ^1.0
Requires (Dev)
- ext-json: *
- nyholm/psr7: ^1.4
- php-http/mock-client: ^1.5
- phpunit/phpunit: >=8.0
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.