PHPackages                             inanepain/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. inanepain/cache

ActiveLibrary[Caching](/categories/caching)

inanepain/cache
===============

Some simple caching tools implementing PSR-6 and PSR-16.

0.3.0(3w ago)18UnlicensePHPPHP &gt;=8.5

Since Sep 26Pushed 3w ago1 watchersCompare

[ Source](https://github.com/inanepain/cache)[ Packagist](https://packagist.org/packages/inanepain/cache)[ Docs](https://github.com/inanepain/cache)[ RSS](/packages/inanepain-cache/feed)WikiDiscussions develop Synced 3d ago

READMEChangelog (1)Dependencies (8)Versions (6)Used By (0)

inanepain/cache [![icon](./icon.png "inanepain/cache")](./icon.png)
===================================================================

[](#inanepaincache-)

Table of Contents

- [![icon](./icon.png "inanepain/cache") inanepain/cache](#inanepaincache)
- [1. Install](#install)
- [2. Goals](#goals)
    - [2.1. Primary Goal](#primary-goal)
- [3. Example](#example)

[![icon](./icon.png "inanepain/cache")](./icon.png) inanepain/cache
-------------------------------------------------------------------

[](#-inanepaincache)

Some simple caching tools implementing PSR-6 and PSR-16.

1. Install
----------

[](#1-install)

composer

```
composer require inanepain/cache
```

Some simple caching tools that implement [`PSR-6`](https://www.php-fig.org/psr/psr-6) and [`PSR-16`](https://www.php-fig.org/psr/psr-16).

2. Goals
--------

[](#2-goals)

There is a lot to cover here, so I’ll keep a bit of a record so as not to let bits fall between the cracks. As a bonus, a record will help keep me focused on the goal as well as track progress.
Man can I talk/type crap oir what?

### 2.1. Primary Goal

[](#21-primary-goal)

To reduce remote access when using internet or other non-local-sourced data.

3. Example
----------

[](#3-example)

Basic example, creating a `RemoteFileCache` object and using it to only return a file once. Using the defaults any subsequent requests, within a one-day period for the same url, retrieves content from cache.

Basic RemoteFileCache Example

```
$rfc = new \Inane\Cache\RemoteFileCache();
$html = $rfc->get('http://example.com/files/example.html');
```

*"No way!"* I hear you say. *"That is so simple!"*
Yes, it is. But it is also very powerful.
The `RemoteFileCache` class implements the `PSR-6` and `PSR-16` interfaces so you can use it with any other library that implements those interfaces. It also has a few extra features that make it even more useful.

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance94

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Total

4

Last Release

26d ago

PHP version history (2 changes)0.1.0PHP &gt;=8.1

0.3.0PHP &gt;=8.5

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1823594?v=4)[Philip Michael Raab](/maintainers/inanepain)[@inanepain](https://github.com/inanepain)

---

Top Contributors

[![inanepain](https://avatars.githubusercontent.com/u/1823594?v=4)](https://github.com/inanepain "inanepain (38 commits)")

---

Tags

cachecomposerfileinanepainlibraryphppsr-16psr-6librarycachepsr-16filepsr-6inaneinanepain

### Embed Badge

![Health badge](/badges/inanepain-cache/health.svg)

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

###  Alternatives

[laminas/laminas-cache

Caching implementation with a variety of storage options, as well as codified caching strategies for callbacks, classes, and output

1077.3M154](/packages/laminas-laminas-cache)[cache/simple-cache-bridge

A PSR-6 bridge to PSR-16. This will make any PSR-6 cache compatible with SimpleCache.

433.3M27](/packages/cache-simple-cache-bridge)[infocyph/intermix

A lightweight PHP DI container, invoker, serializer, and utility toolkit.

137.7k2](/packages/infocyph-intermix)[codeigniter4/cache

PSR-6 and PSR-16 Cache Adapters for CodeIgniter 4

1422.1k](/packages/codeigniter4-cache)

PHPackages © 2026

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