Registry / http-client / kevinrob-guzzle-cache-middleware

kevinrob-guzzle-cache-middleware

JSON →
library7.0.0phppackagistunverified

A HTTP/1.1 Cache for Guzzle 6. It's a simple Middleware to be added in the HandlerStack. (RFC 7234)

composer require kevinrob/guzzle-cache-middleware
INSTALL
IMPORT
SIG · KEVINROB-GUZZLE-CA
K
kevinrob-guzzle-cache-middleware
http-clientphpv7.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CacheMiddleware
use Kevinrob\GuzzleCache\CacheMiddleware;

Add caching to a Guzzle client

use Kevinrob\GuzzleCache\CacheMiddleware; use GuzzleHttp\Client; use GuzzleHttp\HandlerStack; $stack = HandlerStack::create(); $stack->push(new CacheMiddleware(), 'cache'); $client = new Client(['handler' => $stack]); $response = $client->get('https://example.com');
Debug
Known issues
breakingRequires Guzzle 6.x
fix
Use version 7.x for Guzzle 7 compatibility
affects: <7.0.0
Upgrade
Version history
7.0.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
16
Resources
kevinrob-guzzle-cache-middleware — pip install kevinrob-guzzle-cache-middleware · libregistry