dmt-software/laravel-guzzle-psr7

Use guzzle for PSR-7 server-request and response in Laravel 6 and up.

Installs: 5

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/dmt-software/laravel-guzzle-psr7

v2.0.0 2022-04-20 14:48 UTC

This package is auto-updated.

Last update: 2025-09-20 22:35:39 UTC


README

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) {
    // 
});