This package is abandoned and no longer maintained. The author suggests using the php-http/cache-plugin package instead.

Provides A Simple HTTP Cache Plugin With Good Defaults

v1.1.0 2019-01-27 13:36 UTC

This package is auto-updated.

Last update: 2019-12-02 13:40:58 UTC


Cache Plugin is maintained by Graham Campbell, and is strongly based on the Cache Plugin by the PHP HTTP Team. This package was created because the original implemenation needed tweaking for my GitHub package, and now I need to share the code with my new GitLab package, thus I have extracted this single class here. Feel free to check out the releases, security policy, license, code of conduct, and contribution guidelines.

StyleCI Status Build Status Quality Score Software License Latest Version


Cache Plugin requires PHP 7. To get the latest version, simply require the project using Composer:

$ composer require graham-campbell/cache-plugin


There is no usage documentation for this package as of yet. I would encurage you to simply flick through the source code, as there is only one file. This package is also used by my Laravel GitHub and Laravel GitLab.


If you discover a security vulnerability within this package, please send an email to Graham Campbell at All security vulnerabilities will be promptly addressed. You may view our full security policy here.


Cache Plugin is licensed under The MIT License (MIT).