2017 © Pedro Peláez
 

library http-cache

Slim Framework HTTP cache middleware and service provider

image

slim/http-cache

Slim Framework HTTP cache middleware and service provider

  • Wednesday, September 20, 2017
  • by akrabat
  • Repository
  • 16 Watchers
  • 73 Stars
  • 97,195 Installations
  • PHP
  • 20 Dependents
  • 2 Suggesters
  • 18 Forks
  • 5 Open issues
  • 6 Versions
  • 15 % Grown

The README.md

Slim Framework HTTP Cache

Build Status, (*1)

This repository contains a Slim Framework HTTP cache middleware and service provider., (*2)

Install

Via Composer, (*3)

``` bash $ composer require slim/http-cache, (*4)


Requires Slim 3.0.0 or newer. ## Usage ```php $app = new \Slim\App(); // Register middleware $app->add(new \Slim\HttpCache\Cache('public', 86400)); // Fetch DI Container $container = $app->getContainer(); // Register service provider $container['cache'] = function () { return new \Slim\HttpCache\CacheProvider(); }; // Example route with ETag header $app->get('/foo', function ($req, $res, $args) { $resWithEtag = $this->cache->withEtag($res, 'abc'); return $resWithEtag; }); $app->run();

Testing

bash $ phpunit, (*5)

Contributing

Please see CONTRIBUTING for details., (*6)

Security

If you discover any security related issues, please email security@slimframework.com instead of using the issue tracker., (*7)

Credits

License

The MIT License (MIT). Please see License File for more information., (*8)

The Versions

20/09 2017

dev-master

9999999-dev http://slimframework.com

Slim Framework HTTP cache middleware and service provider

  Sources   Download

MIT

The Requires

 

The Development Requires

middleware framework cache slim

20/09 2017

0.4.0

0.4.0.0 http://slimframework.com

Slim Framework HTTP cache middleware and service provider

  Sources   Download

MIT

The Requires

 

The Development Requires

middleware framework cache slim

13/08 2015

0.3.0

0.3.0.0 http://slimframework.com

Slim Framework HTTP cache middleware and service provider

  Sources   Download

MIT

The Requires

 

The Development Requires

middleware framework cache slim

27/05 2015

0.2.1

0.2.1.0 http://slimframework.com

Slim Framework HTTP cache middleware and service provider

  Sources   Download

MIT

The Requires

 

The Development Requires

middleware framework cache slim

31/03 2015

0.2.0

0.2.0.0 http://slimframework.com

Slim Framework HTTP cache middleware and service provider

  Sources   Download

MIT

The Requires

 

The Development Requires

middleware framework cache slim

29/03 2015

0.1.0

0.1.0.0 http://slimframework.com

Slim Framework HTTP cache middleware and service provider

  Sources   Download

MIT

The Requires

 

The Development Requires

middleware framework cache slim