PHPackages                             balpom/http-cache-ttl - 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. balpom/http-cache-ttl

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

balpom/http-cache-ttl
=====================

Object for storing common and individual TTLs for different HTTP response status codes for use in caching.

v1.0.1(2y ago)0191MITPHPPHP ^7.4|^8

Since Aug 12Pushed 2y ago1 watchersCompare

[ Source](https://github.com/balpom/http-cache-ttl)[ Packagist](https://packagist.org/packages/balpom/http-cache-ttl)[ Docs](https://www.balpom.ru)[ RSS](/packages/balpom-http-cache-ttl/feed)WikiDiscussions main Synced yesterday

READMEChangelog (2)DependenciesVersions (3)Used By (1)

balpom/http-cache-ttl
=====================

[](#balpomhttp-cache-ttl)

Object for storing common and individual TTLs for different HTTP response status codes for use in caching.
----------------------------------------------------------------------------------------------------------

[](#object-for-storing-common-and-individual-ttls-for-different-http-response-status-codes-for-use-in-caching)

This simple PHP class allows you to assign your own TTL for each HTTP status code (or use default TTL). What is it for? This can be useful if HTTP responses with different codes need to be cached at different TTL.

### Requirements

[](#requirements)

- **PHP &gt;= 7.4**, **PHP 8**

### Installation

[](#installation)

#### Using composer (recommended)

[](#using-composer-recommended)

```
composer require balpom/http-cache-ttl
```

### License

[](#license)

MIT License See [LICENSE.MD](LICENSE.MD)

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity45

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

Total

2

Last Release

767d ago

PHP version history (2 changes)v1.0.0PHP ^7.4|^8.0

v1.0.1PHP ^7.4|^8

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/141855513?v=4)[Mikhail](/maintainers/balpom)[@balpom](https://github.com/balpom)

---

Top Contributors

[![balpom](https://avatars.githubusercontent.com/u/141855513?v=4)](https://github.com/balpom "balpom (1 commits)")

---

Tags

httpresponsecachecachingstatuscodesttl

### Embed Badge

![Health badge](/badges/balpom-http-cache-ttl/health.svg)

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

###  Alternatives

[sofascore/purgatory-bundle

A Symfony bundle for HTTP cache invalidation with support for various backends like Varnish.

11875.4k](/packages/sofascore-purgatory-bundle)

PHPackages © 2026

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