laravel-guzzle-psr7 maintained by dmt-software
Description
Use guzzle for PSR-7 server-request and response in Laravel 6 and up.
Author
Last update
2022/04/20 16:48
(dev-master)
License
Downloads
5
Laravel Guzzle PSR 7
Enable Guzzle to act as provider for PSR-7 compliant ServerRequestInterface instances in Laravel.
Installation
composer require dmt-software/laravel-guzzle-psr7
The service provider maybe automatically registered by auto-discovery. To register it manually add is to _config/app.php:
'providers' => [
DMT\Laravel\Providers\GuzzlePsrServiceProvider::class,
// ...
];
Usage
use Psr\Http\Message\ServerRequestInterface;
Route::get('/', function (ServerRequestInterface $request) {
//
});