PHPackages                             graham-campbell/bounded-cache - 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. [Caching](/categories/caching)
4. /
5. graham-campbell/bounded-cache

ActiveLibrary[Caching](/categories/caching)

graham-campbell/bounded-cache
=============================

A Bounded TTL PSR-16 Cache Implementation

v3.1.0(3mo ago)112.1M↓22.5%6MITPHPPHP ^8.1CI passing

Since Feb 22Pushed 1mo agoCompare

[ Source](https://github.com/GrahamCampbell/Bounded-Cache)[ Packagist](https://packagist.org/packages/graham-campbell/bounded-cache)[ GitHub Sponsors](https://github.com/GrahamCampbell)[ Fund](https://tidelift.com/funding/github/packagist/graham-campbell/bounded-cache)[ RSS](/packages/graham-campbell-bounded-cache/feed)WikiDiscussions 3.1 Synced 2d ago

READMEChangelog (10)Dependencies (10)Versions (24)Used By (6)

Bounded Cache
=============

[](#bounded-cache)

Bounded Cache was created by, and is maintained by [Graham Campbell](https://github.com/GrahamCampbell), and is a bounded TTL [PSR-16](https://www.php-fig.org/psr/psr-16/) cache implementation. Feel free to check out the [change log](CHANGELOG.md), [releases](https://github.com/GrahamCampbell/Bounded-Cache/releases), [security policy](https://github.com/GrahamCampbell/Bounded-Cache/security/policy), [license](LICENSE), [code of conduct](.github/CODE_OF_CONDUCT.md), and [contribution guidelines](.github/CONTRIBUTING.md).

[![Banner](https://user-images.githubusercontent.com/2829600/75094788-34eac080-5586-11ea-8728-119552c4e295.png)](https://user-images.githubusercontent.com/2829600/75094788-34eac080-5586-11ea-8728-119552c4e295.png)

[![Build Status](https://camo.githubusercontent.com/a593d58fd4c3a98c3a6dc6c2a90431097941150bac8eeb972663bd26693b7665/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f47726168616d43616d7062656c6c2f426f756e6465642d43616368652f74657374732e796d6c3f6c6162656c3d5465737473267374796c653d666c61742d737175617265)](https://github.com/GrahamCampbell/Bounded-Cache/actions?query=workflow%3ATests)[![StyleCI Status](https://camo.githubusercontent.com/4649c7245cdc8ba9669c4f8b99978b7df1f832e70df16ee16a48efafe9258b1b/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3234323336303430392f736869656c64)](https://github.styleci.io/repos/242360409)[![Software License](https://camo.githubusercontent.com/c090e080484e2a2bc766446291d04437db823929042bf614b26a1643660ddf6f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e3f7374796c653d666c61742d737175617265)](LICENSE)[![Packagist Downloads](https://camo.githubusercontent.com/5b6d84134328d754dda3f3c666470c92e9a2e96df8bc08bf750b048056459afe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f67726168616d2d63616d7062656c6c2f626f756e6465642d63616368653f7374796c653d666c61742d737175617265)](https://packagist.org/packages/graham-campbell/bounded-cache)[![Latest Version](https://camo.githubusercontent.com/2a45eba77b51d6a47381458f38ce6de85d025e9de6f41e51c2708870b6e5a6a5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f47726168616d43616d7062656c6c2f426f756e6465642d43616368653f7374796c653d666c61742d737175617265)](https://github.com/GrahamCampbell/Bounded-Cache/releases)

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

[](#installation)

This version requires [PHP](https://www.php.net/) 8.1-8.5.

To get the latest version, simply require the project using [Composer](https://getcomposer.org/):

```
$ composer require "graham-campbell/bounded-cache:^3.1"
```

Security
--------

[](#security)

If you discover a security vulnerability within this package, please send an email to . All security vulnerabilities will be promptly addressed. You may view our full security policy [here](https://github.com/GrahamCampbell/Bounded-Cache/security/policy).

License
-------

[](#license)

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

For Enterprise
--------------

[](#for-enterprise)

Available as part of the Tidelift Subscription

The maintainers of `graham-campbell/bounded-cache` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/packagist-graham-campbell-bounded-cache?utm_source=packagist-graham-campbell-bounded-cache&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)

###  Health Score

60

—

FairBetter than 98% of packages

Maintenance85

Actively maintained with recent releases

Popularity47

Moderate usage in the ecosystem

Community14

Small or concentrated contributor base

Maturity76

Established project with proven stability

 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 ~98 days

Recently: every ~119 days

Total

24

Last Release

57d ago

Major Versions

1.2.x-dev → v2.0.02022-05-30

v1.3.0 → v2.1.02022-07-31

2.2.x-dev → v3.0.02025-02-09

PHP version history (5 changes)v1.0.0PHP ^7.2.5

v1.0.2PHP ^7.2.5 || ^8.0

v1.2.0PHP ^7.4.15 || ^8.0.2

v2.0.0PHP ^8.0.2

v3.0.0PHP ^8.1

### 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 (59 commits)")

---

Tags

hacktoberfestcacheGraham CampbellGrahamCampbellpsr16boundedBounded Cache

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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