2017 © Pedro Peláez
 

library guzzle-cache-middleware

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

image

kevinrob/guzzle-cache-middleware

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

  • Wednesday, July 11, 2018
  • by Kevinrob
  • Repository
  • 9 Watchers
  • 185 Stars
  • 421,004 Installations
  • PHP
  • 47 Dependents
  • 4 Suggesters
  • 40 Forks
  • 10 Open issues
  • 46 Versions
  • 18 % Grown

The README.md

guzzle-cache-middleware

Latest Stable Version Total Downloads License Tests Scrutinizer Code Quality Code Coverage, (*1)

A HTTP Cache for Guzzle 6+. It's a simple Middleware to be added in the HandlerStack., (*2)

Goals

  • RFC 7234 compliance
  • Performance and transparency
  • Assured compatibility with PSR-7

Built-in storage interfaces

Installation

composer require kevinrob/guzzle-cache-middleware, (*3)

or add it the your composer.json and run composer update kevinrob/guzzle-cache-middleware., (*4)

Why?

Performance. It's very common to do some HTTP calls to an API for rendering a page and it takes times to do it., (*5)

How?

With a simple Middleware added at the top of the HandlerStack of Guzzle., (*6)

use GuzzleHttp\Client;
use GuzzleHttp\HandlerStack;
use Kevinrob\GuzzleCache\CacheMiddleware;

// Create default HandlerStack
$stack = HandlerStack::create();

// Add this middleware to the top with `push`
$stack->push(new CacheMiddleware(), 'cache');

// Initialize the client with the handler option
$client = new Client(['handler' => $stack]);

Examples

Doctrine/Cache

You can use a cache from Doctrine/Cache:, (*7)

[...]
use Doctrine\Common\Cache\FilesystemCache;
use Kevinrob\GuzzleCache\Strategy\PrivateCacheStrategy;
use Kevinrob\GuzzleCache\Storage\DoctrineCacheStorage;

[...]
$stack->push(
  new CacheMiddleware(
    new PrivateCacheStrategy(
      new DoctrineCacheStorage(
        new FilesystemCache('/tmp/')
      )
    )
  ),
  'cache'
);

You can use ChainCache for using multiple CacheProvider instances. With that provider, you have to sort the different caches from the faster to the slower. Like that, you can have a very fast cache., (*8)

[...]
use Doctrine\Common\Cache\ChainCache;
use Doctrine\Common\Cache\ArrayCache;
use Doctrine\Common\Cache\FilesystemCache;
use Kevinrob\GuzzleCache\Strategy\PrivateCacheStrategy;
use Kevinrob\GuzzleCache\Storage\DoctrineCacheStorage;

[...]
$stack->push(new CacheMiddleware(
  new PrivateCacheStrategy(
    new DoctrineCacheStorage(
      new ChainCache([
        new ArrayCache(),
        new FilesystemCache('/tmp/'),
      ])
    )
  )
), 'cache');

Laravel cache

You can use a cache with Laravel, e.g. Redis, Memcache etc.:, (*9)

[...]
use Illuminate\Support\Facades\Cache;
use Kevinrob\GuzzleCache\Strategy\PrivateCacheStrategy;
use Kevinrob\GuzzleCache\Storage\LaravelCacheStorage;

[...]

$stack->push(
  new CacheMiddleware(
    new PrivateCacheStrategy(
      new LaravelCacheStorage(
        Cache::store('redis')
      )
    )
  ),
  'cache'
);

Flysystem

[...]
use League\Flysystem\Adapter\Local;
use Kevinrob\GuzzleCache\Strategy\PrivateCacheStrategy;
use Kevinrob\GuzzleCache\Storage\FlysystemStorage;

[...]

$stack->push(
  new CacheMiddleware(
    new PrivateCacheStrategy(
      new FlysystemStorage(
        new Local('/path/to/cache')
      )
    )
  ),
  'cache'
);

WordPress Object Cache

[...]
use Kevinrob\GuzzleCache\Strategy\PrivateCacheStrategy;
use Kevinrob\GuzzleCache\Storage\WordPressObjectCacheStorage;

[...]

$stack->push(
  new CacheMiddleware(
    new PrivateCacheStrategy(
      new WordPressObjectCacheStorage()
    )
  ),
  'cache'
);

Public and shared

It's possible to add a public shared cache to the stack:, (*10)

[...]
use Doctrine\Common\Cache\FilesystemCache;
use Doctrine\Common\Cache\PredisCache;
use Kevinrob\GuzzleCache\Strategy\PrivateCacheStrategy;
use Kevinrob\GuzzleCache\Strategy\PublicCacheStrategy;
use Kevinrob\GuzzleCache\Storage\DoctrineCacheStorage;

[...]
// Private caching
$stack->push(
  new CacheMiddleware(
    new PrivateCacheStrategy(
      new DoctrineCacheStorage(
        new FilesystemCache('/tmp/')
      )
    )
  ),
  'private-cache'
);

// Public caching
$stack->push(
  new CacheMiddleware(
    new PublicCacheStrategy(
      new DoctrineCacheStorage(
        new PredisCache(
          new Predis\Client('tcp://10.0.0.1:6379')
        )
      )
    )
  ),
  'shared-cache'
);

Greedy caching

In some cases servers might send insufficient or no caching headers at all. Using the greedy caching strategy allows defining an expiry TTL on your own while disregarding any possibly present caching headers:, (*11)

[...]
use Kevinrob\GuzzleCache\KeyValueHttpHeader;
use Kevinrob\GuzzleCache\Strategy\GreedyCacheStrategy;
use Kevinrob\GuzzleCache\Storage\DoctrineCacheStorage;
use Doctrine\Common\Cache\FilesystemCache;

[...]
// Greedy caching
$stack->push(
  new CacheMiddleware(
    new GreedyCacheStrategy(
      new DoctrineCacheStorage(
        new FilesystemCache('/tmp/')
      ),
      1800, // the TTL in seconds
      new KeyValueHttpHeader(['Authorization']) // Optional - specify the headers that can change the cache key
    )
  ),
  'greedy-cache'
);

Delegate caching

Because your client may call different apps, on different domains, you may need to define which strategy is suitable to your requests., (*12)

To solve this, all you have to do is to define a default cache strategy, and override it by implementing your own Request Matchers., (*13)

Here's an example:, (*14)

namespace App\RequestMatcher;

use Kevinrob\GuzzleCache\Strategy\Delegate\RequestMatcherInterface;
use Psr\Http\Message\RequestInterface;

class ExampleOrgRequestMatcher implements RequestMatcherInterface
{

    /**
     * @inheritDoc
     */
    public function matches(RequestInterface $request)
    {
        return false !== strpos($request->getUri()->getHost(), 'example.org');
    }
}
namespace App\RequestMatcher;

use Kevinrob\GuzzleCache\Strategy\Delegate\RequestMatcherInterface;
use Psr\Http\Message\RequestInterface;

class TwitterRequestMatcher implements RequestMatcherInterface
{

    /**
     * @inheritDoc
     */
    public function matches(RequestInterface $request)
    {
        return false !== strpos($request->getUri()->getHost(), 'twitter.com');
    }
}
require_once __DIR__ . '/vendor/autoload.php';

use App\RequestMatcher\ExampleOrgRequestMatcher;
use App\RequestMatcher\TwitterRequestMatcher;
use GuzzleHttp\Client;
use GuzzleHttp\HandlerStack;
use Kevinrob\GuzzleCache\CacheMiddleware;
use Kevinrob\GuzzleCache\Strategy;

$strategy = new Strategy\Delegate\DelegatingCacheStrategy($defaultStrategy = new Strategy\NullCacheStrategy());
$strategy->registerRequestMatcher(new ExampleOrgRequestMatcher(), new Strategy\PublicCacheStrategy());
$strategy->registerRequestMatcher(new TwitterRequestMatcher(), new Strategy\PrivateCacheStrategy());

$stack = HandlerStack::create();
$stack->push(new CacheMiddleware($strategy));
$guzzle = new Client(['handler' => $stack]);

With this example: * All requests to example.org will be handled by PublicCacheStrategy * All requests to twitter.com will be handled by PrivateCacheStrategy * All other requests won't be cached., (*15)

Drupal

See Guzzle Cache module., (*16)

Links that talk about the project

Buy me a coffee

If you like this project, you can buy me a coffee! (or a beer 😉)
, (*17)

Development

Docker quick start

Initialization

make init

Running test

make test

Entering container shell

make shell

The Versions

11/07 2018

dev-master

9999999-dev https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

middleware cache php validation http psr7 doctrine guzzle performance etag promise flysystem expiration handler psr6 guzzle6 cache-control http 1.1 rfc7234

10/01 2018

v3.2.1

3.2.1.0 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

middleware cache php validation http psr7 doctrine guzzle performance etag promise flysystem expiration handler psr6 guzzle6 cache-control http 1.1 rfc7234

10/01 2018

dev-scrutinizer-patch-1

dev-scrutinizer-patch-1 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

middleware cache php validation http psr7 doctrine guzzle performance etag promise flysystem expiration handler psr6 guzzle6 cache-control http 1.1 rfc7234

21/11 2017

v3.2.0

3.2.0.0 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

middleware cache php validation http psr7 doctrine guzzle performance etag promise flysystem expiration handler psr6 guzzle6 cache-control http 1.1 rfc7234

13/11 2017

v3.1.0

3.1.0.0 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

middleware cache php validation http psr7 doctrine guzzle performance etag promise flysystem expiration handler psr6 guzzle6 cache-control http 1.1 rfc7234

08/11 2017

v3.0.0

3.0.0.0 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

middleware cache php validation http psr7 doctrine guzzle performance etag promise flysystem expiration handler psr6 guzzle6 cache-control http 1.1 rfc7234

22/10 2017

dev-wip-91

dev-wip-91 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

middleware cache php validation http psr7 doctrine guzzle performance etag promise flysystem expiration handler psr6 guzzle6 cache-control http 1.1 rfc7234

17/08 2017

v2.1.1

2.1.1.0 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

middleware cache php validation http psr7 doctrine guzzle performance etag promise flysystem expiration handler psr6 guzzle6 cache-control http 1.1 rfc7234

10/07 2017

v2.1

2.1.0.0 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

middleware cache php validation http psr7 doctrine guzzle performance etag promise flysystem expiration handler psr6 guzzle6 cache-control http 1.1 rfc7234

09/07 2017

dev-issue-62

dev-issue-62 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

middleware cache php validation http psr7 doctrine guzzle performance etag promise flysystem expiration handler psr6 guzzle6 cache-control http 1.1 rfc7234

30/03 2017

v2.0.2

2.0.2.0 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

middleware cache php validation http psr7 doctrine guzzle performance etag promise flysystem expiration handler psr6 guzzle6 cache-control http 1.1 rfc7234

27/02 2017

v2.0.1

2.0.1.0 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

middleware cache php validation http psr7 doctrine guzzle performance etag promise flysystem expiration handler psr6 guzzle6 cache-control http 1.1 rfc7234

04/02 2017

v2.0

2.0.0.0 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

middleware cache php validation http psr7 doctrine guzzle performance etag promise flysystem expiration handler psr6 guzzle6 cache-control http 1.1 rfc7234

16/01 2017

v1.5.2

1.5.2.0 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

middleware cache php validation http psr7 doctrine guzzle performance etag promise flysystem expiration handler psr6 guzzle6 cache-control http 1.1 rfc7234

05/01 2017

v1.5.1

1.5.1.0 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

middleware cache php validation http psr7 doctrine guzzle performance etag promise flysystem expiration handler psr6 guzzle6 cache-control http 1.1 rfc7234

01/12 2016

v1.5

1.5.0.0 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

middleware cache php validation http psr7 doctrine guzzle performance etag promise flysystem expiration handler psr6 guzzle6 cache-control http 1.1 rfc7234

02/09 2016

v1.4.3

1.4.3.0 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

middleware cache php validation http psr7 doctrine guzzle performance etag promise flysystem expiration handler psr6 guzzle6 cache-control http 1.1 rfc7234

26/08 2016

v1.4.2

1.4.2.0 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

middleware cache php validation http psr7 doctrine guzzle performance etag promise flysystem expiration handler psr6 guzzle6 cache-control http 1.1 rfc7234

17/06 2016

v1.4.1

1.4.1.0 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

middleware cache php validation http psr7 doctrine guzzle performance etag promise flysystem expiration handler psr6 guzzle6 cache-control http 1.1 rfc7234

10/05 2016

v1.4

1.4.0.0 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

middleware cache php validation http psr7 doctrine guzzle performance etag promise flysystem expiration handler psr6 guzzle6 cache-control http 1.1 rfc7234

03/05 2016

v1.3

1.3.0.0 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

middleware cache php validation http psr7 doctrine guzzle performance etag promise flysystem expiration handler psr6 guzzle6 cache-control http 1.1 rfc7234

07/04 2016

v1.2.2

1.2.2.0 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

middleware cache php validation http psr7 doctrine guzzle performance etag promise flysystem expiration handler psr6 guzzle6 cache-control http 1.1 rfc7234

23/03 2016

v1.2.1

1.2.1.0 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

middleware cache php validation http psr7 doctrine guzzle performance etag promise flysystem expiration handler psr6 guzzle6 cache-control http 1.1 rfc7234

12/03 2016

v1.2

1.2.0.0 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

middleware cache php validation http psr7 doctrine guzzle performance etag promise flysystem expiration handler psr6 guzzle6 cache-control http 1.1 rfc7234

27/02 2016

v1.1.2

1.1.2.0 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

middleware cache php validation http psr7 guzzle performance etag promise expiration handler guzzle6 cache-control http 1.1 rfc7234

14/02 2016

v1.1.1

1.1.1.0 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

middleware cache php validation http psr7 guzzle performance etag promise expiration handler guzzle6 cache-control http 1.1 rfc7234

22/01 2016

v1.1

1.1.0.0 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

middleware cache php validation http psr7 guzzle performance etag promise expiration handler guzzle6 cache-control http 1.1 rfc7234

23/11 2015

v1.0.1

1.0.1.0 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

middleware cache php validation http psr7 guzzle performance etag promise expiration handler guzzle6 cache-control http 1.1 rfc7234

13/11 2015

v1.0

1.0.0.0 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

middleware cache php validation http psr7 guzzle performance etag promise expiration handler guzzle6 cache-control http 1.1 rfc7234

13/11 2015

v0.8.1

0.8.1.0 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

middleware cache php validation http psr7 guzzle performance etag promise expiration handler guzzle6 cache-control http 1.1 rfc7234

11/10 2015

v0.8

0.8.0.0 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

middleware cache php validation http psr7 guzzle performance etag promise expiration handler guzzle6 cache-control http 1.1 rfc7234

26/09 2015

v0.7.1

0.7.1.0 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

middleware cache php validation http psr7 guzzle performance etag promise expiration handler guzzle6 cache-control http 1.1 rfc7234

19/09 2015

v0.7

0.7.0.0 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

middleware cache php validation http psr7 guzzle performance etag promise expiration handler guzzle6 cache-control http 1.1 rfc7234

17/09 2015

v0.6.2

0.6.2.0 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

middleware cache php validation http psr7 guzzle performance etag promise expiration handler guzzle6 cache-control http 1.1 rfc7234

06/09 2015

v0.6.1

0.6.1.0 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

middleware cache php validation http psr7 guzzle performance etag promise expiration handler guzzle6 cache-control http 1.1 rfc7234

16/08 2015

v0.6

0.6.0.0 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

middleware cache php validation http psr7 guzzle performance etag promise expiration handler guzzle6 cache-control http 1.1 rfc7234

30/07 2015

v0.5.3

0.5.3.0 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

 

The Development Requires

middleware cache php validation http psr7 guzzle performance etag promise expiration handler guzzle6 cache-control http 1.1 rfc7234

26/07 2015

v0.5.2

0.5.2.0 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

 

The Development Requires

middleware cache php validation http psr7 guzzle performance etag promise expiration handler guzzle6 cache-control http 1.1 rfc7234

21/07 2015

v0.5.1

0.5.1.0 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

 

The Development Requires

middleware cache php validation http psr7 guzzle performance etag promise expiration handler guzzle6 cache-control http 1.1 rfc2616

19/07 2015

v0.5

0.5.0.0 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

 

The Development Requires

middleware cache php validation http psr7 guzzle performance etag promise expiration handler guzzle6 cache-control http 1.1 rfc2616

17/07 2015

v0.4.2

0.4.2.0 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

 

The Development Requires

middleware cache php validation http psr7 guzzle performance etag promise expiration handler guzzle6 cache-control http 1.1 rfc2616

17/07 2015

v0.4.1

0.4.1.0 https://github.com/Kevinrob/guzzle-cache-middleware

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

  Sources   Download

MIT

The Requires

 

The Development Requires

middleware cache php validation http psr7 guzzle performance etag promise expiration handler guzzle6 cache-control http 1.1 rfc2616

16/07 2015

v0.4

0.4.0.0 https://github.com/Kevinrob/guzzle-cache-middleware

A HTTP Cache for Guzzle 6. It's a simple Middleware to be added in the HandlerStack.

  Sources   Download

MIT

The Requires

 

The Development Requires

cache http psr7 guzzle

07/07 2015

v0.3

0.3.0.0 https://github.com/Kevinrob/guzzle-cache-middleware

A HTTP Cache for Guzzle 6. It's a simple Middleware to be added in the HandlerStack.

  Sources   Download

MIT

The Requires

 

The Development Requires

cache http psr7 guzzle

30/06 2015

v0.2

0.2.0.0 https://github.com/Kevinrob/guzzle-cache-middleware

A HTTP Cache for Guzzle 6. It's a simple Middleware to be added in the HandlerStack.

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

cache http psr7 guzzle

30/06 2015

v0.1

0.1.0.0 https://github.com/Kevinrob/guzzle-cache-middleware

A HTTP Cache for Guzzle 6. It's a simple Middleware to be added in the HandlerStack.

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

cache http psr7 guzzle