PHPackages                             graham-campbell/cache-plugin - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. graham-campbell/cache-plugin

Abandoned → [php-http/cache-plugin](/?search=php-http%2Fcache-plugin)ArchivedLibrary[HTTP &amp; Networking](/categories/http)

graham-campbell/cache-plugin
============================

Provides A Simple HTTP Cache Plugin With Good Defaults

v1.1.0(7y ago)14174.5k↓44.7%3MITPHPPHP ^7.0

Since Mar 17Pushed 6y ago1 watchersCompare

[ Source](https://github.com/GrahamCampbell/Cache-Plugin)[ Packagist](https://packagist.org/packages/graham-campbell/cache-plugin)[ RSS](/packages/graham-campbell-cache-plugin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (6)Versions (3)Used By (3)

Cache Plugin
============

[](#cache-plugin)

Cache Plugin is maintained by [Graham Campbell](https://github.com/GrahamCampbell), and is strongly based on the [Cache Plugin](https://github.com/php-http/cache-plugin) by the [PHP HTTP Team](http://php-http.org/). 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](https://github.com/GrahamCampbell/Cache-Plugin/releases), [security policy](https://github.com/GrahamCampbell/Cache-Plugin/security/policy), [license](LICENSE), [code of conduct](.github/CODE_OF_CONDUCT.md), and [contribution guidelines](.github/CONTRIBUTING.md).

[![StyleCI Status](https://camo.githubusercontent.com/0027576aa0f6f2c0d6afcf5822b488a6eba77716151a94501478dd01bd2109fb/68747470733a2f2f7374796c6563692e696f2f7265706f732f3132353633313439302f736869656c64)](https://styleci.io/repos/125631490)[![Build Status](https://camo.githubusercontent.com/819b00bf224fd58b9dce22608ebe46e18fb40af544319c4dde004ca8c7bd8c5e/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f47726168616d43616d7062656c6c2f43616368652d506c7567696e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/GrahamCampbell/Cache-Plugin)[![Quality Score](https://camo.githubusercontent.com/1363539a45189b924103b188a4a25e133b625734dc9b32472894b0074076744e/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f47726168616d43616d7062656c6c2f43616368652d506c7567696e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/GrahamCampbell/Cache-Plugin)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Latest Version](https://camo.githubusercontent.com/16c16bf6b54ff2a74db47eb6c8c6be33db52c8b7262a30cfd60d94d3be6290e8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f47726168616d43616d7062656c6c2f43616368652d506c7567696e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/GrahamCampbell/Cache-Plugin/releases)

Installation
------------

[](#installation)

Cache Plugin requires [PHP](https://php.net) 7. To get the latest version, simply require the project using [Composer](https://getcomposer.org):

```
$ composer require graham-campbell/cache-plugin
```

Usage
-----

[](#usage)

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](https://github.com/GrahamCampbell/Laravel-GitHub) and [Laravel GitLab](https://github.com/GrahamCampbell/Laravel-GitLab).

Security
--------

[](#security)

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](https://github.com/GrahamCampbell/Cache-Plugin/security/policy).

License
-------

[](#license)

Cache Plugin is licensed under [The MIT License (MIT)](LICENSE).

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~315 days

Total

2

Last Release

2668d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d95eb26cb8f3919bb5ca3b6d823daeabbf259663778a970349b245c580713c8e?d=identicon)[graham-campbell](/maintainers/graham-campbell)

---

Top Contributors

[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (21 commits)")

---

Tags

httpcacheGraham CampbellGrahamCampbellCache Plugin

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/graham-campbell-cache-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/graham-campbell-cache-plugin/health.svg)](https://phpackages.com/packages/graham-campbell-cache-plugin)
```

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25024.2M71](/packages/php-http-cache-plugin)[graham-campbell/guzzle-factory

Provides A Simple Guzzle Factory With Good Defaults

916.4M49](/packages/graham-campbell-guzzle-factory)[friendsofsymfony/http-cache

Tools to manage HTTP caching proxies with PHP

36114.7M36](/packages/friendsofsymfony-http-cache)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[php-http/laravel-httplug

Laravel package to integrate the Httplug generic HTTP client into Laravel

12110.1k](/packages/php-http-laravel-httplug)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
