PHPackages                             php-http/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. php-http/cache-plugin

ActiveLibrary[HTTP &amp; Networking](/categories/http)

php-http/cache-plugin
=====================

PSR-6 Cache plugin for HTTPlug

2.0.2(5mo ago)24924.2M—8.9%17[7 issues](https://github.com/php-http/cache-plugin/issues)20MITPHPPHP ^7.1 || ^8.0CI passing

Since May 4Pushed 5mo ago6 watchersCompare

[ Source](https://github.com/php-http/cache-plugin)[ Packagist](https://packagist.org/packages/php-http/cache-plugin)[ Docs](http://httplug.io)[ RSS](/packages/php-http-cache-plugin/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (22)Used By (20)

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

[](#cache-plugin)

[![Latest Version](https://camo.githubusercontent.com/b87f7cf66d139b40a2f6d581b1834e88b742b8e19b861fc89fda1fa270808236/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7068702d687474702f63616368652d706c7567696e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/php-http/cache-plugin/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://github.com/php-http/cache-plugin/actions/workflows/tests.yml/badge.svg)](https://github.com/php-http/cache-plugin/actions/workflows/tests.yml)[![Code Coverage](https://camo.githubusercontent.com/50fed411c4cecc3df02e26cf08c88d737fbb17b9fb3b936c6622d49e4cd8cb40/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f7068702d687474702f63616368652d706c7567696e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/php-http/cache-plugin)[![Quality Score](https://camo.githubusercontent.com/ad12876ed6c7381147a5e2bf1367258f46b93056e512d0aa99e11bdef9a42e99/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7068702d687474702f63616368652d706c7567696e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/php-http/cache-plugin)[![Total Downloads](https://camo.githubusercontent.com/f6d0b5b32d8c7e94b679691558a815b737a40c065cf3fe85f3144474a30df323/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7068702d687474702f63616368652d706c7567696e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/php-http/cache-plugin)

**PSR-6 Cache plugin for HTTPlug.**

Install
-------

[](#install)

Via Composer

```
composer require php-http/cache-plugin
```

Documentation
-------------

[](#documentation)

Please see the [official documentation](http://docs.php-http.org/en/latest/plugins/cache.html).

Testing
-------

[](#testing)

```
composer test
```

Contributing
------------

[](#contributing)

Please see our [contributing guide](http://docs.php-http.org/en/latest/development/contributing.html).

Security
--------

[](#security)

If you discover any security related issues, please contact us at .

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

67

—

FairBetter than 100% of packages

Maintenance70

Regular maintenance activity

Popularity66

Solid adoption and visibility

Community42

Growing community involvement

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 55.6% 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 ~166 days

Total

22

Last Release

168d ago

Major Versions

1.x-dev → 2.0.02024-02-19

2.0.1 → 3.x-dev2025-02-12

PHP version history (4 changes)v1.0.0PHP &gt;=5.4

v1.2.0PHP ^5.4 || ^7.0

1.7.0PHP ^7.1

1.7.1PHP ^7.1 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/0e4e105cea62b616d4cb376b08a849b6a428f646998537de150d16a8eb537b90?d=identicon)[mark.sagikazar](/maintainers/mark.sagikazar)

![](https://avatars.githubusercontent.com/u/76576?v=4)[David Buchmann](/maintainers/dbu)[@dbu](https://github.com/dbu)

![](https://www.gravatar.com/avatar/3fb6e13a139230893f783118651540d3d057979fd726fefd135b1b397873010e?d=identicon)[php-http](/maintainers/php-http)

---

Top Contributors

[![dbu](https://avatars.githubusercontent.com/u/76576?v=4)](https://github.com/dbu "dbu (74 commits)")[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (23 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (9 commits)")[![sagikazarmark](https://avatars.githubusercontent.com/u/1226384?v=4)](https://github.com/sagikazarmark "sagikazarmark (9 commits)")[![acrobat](https://avatars.githubusercontent.com/u/1374857?v=4)](https://github.com/acrobat "acrobat (2 commits)")[![deguif](https://avatars.githubusercontent.com/u/993399?v=4)](https://github.com/deguif "deguif (2 commits)")[![endroid](https://avatars.githubusercontent.com/u/537253?v=4)](https://github.com/endroid "endroid (2 commits)")[![iainconnor](https://avatars.githubusercontent.com/u/4603014?v=4)](https://github.com/iainconnor "iainconnor (2 commits)")[![tuupola](https://avatars.githubusercontent.com/u/21913?v=4)](https://github.com/tuupola "tuupola (2 commits)")[![nicolas-grekas](https://avatars.githubusercontent.com/u/243674?v=4)](https://github.com/nicolas-grekas "nicolas-grekas (1 commits)")[![GeLoLabs](https://avatars.githubusercontent.com/u/149005863?v=4)](https://github.com/GeLoLabs "GeLoLabs (1 commits)")[![core23](https://avatars.githubusercontent.com/u/3440437?v=4)](https://github.com/core23 "core23 (1 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (1 commits)")[![tacman](https://avatars.githubusercontent.com/u/619585?v=4)](https://github.com/tacman "tacman (1 commits)")[![theofidry](https://avatars.githubusercontent.com/u/5175937?v=4)](https://github.com/theofidry "theofidry (1 commits)")[![glaubinix](https://avatars.githubusercontent.com/u/442056?v=4)](https://github.com/glaubinix "glaubinix (1 commits)")[![yoshz](https://avatars.githubusercontent.com/u/397425?v=4)](https://github.com/yoshz "yoshz (1 commits)")

---

Tags

httpplugincachehttplug

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/php-http-cache-plugin/health.svg)

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

###  Alternatives

[php-http/client-common

Common HTTP Client implementations and tools for HTTPlug

1.0k225.5M571](/packages/php-http-client-common)[php-http/httplug-bundle

Symfony integration for HTTPlug

38921.0M54](/packages/php-http-httplug-bundle)[php-http/logger-plugin

PSR-3 Logger plugin for HTTPlug

29025.3M69](/packages/php-http-logger-plugin)[php-http/stopwatch-plugin

Symfony Stopwatch plugin for HTTPlug

26721.1M3](/packages/php-http-stopwatch-plugin)[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)

PHPackages © 2026

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