PHPackages                             bertptrs/mako-simple-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. bertptrs/mako-simple-cache

ActiveLibrary[Caching](/categories/caching)

bertptrs/mako-simple-cache
==========================

A cache-wrapper implementing PSR-16 for the Mako Framework.

v0.1.0(6y ago)06GPL-3.0-or-laterPHPCI failing

Since Jun 30Pushed 6y agoCompare

[ Source](https://github.com/bertptrs/mako-simple-cache)[ Packagist](https://packagist.org/packages/bertptrs/mako-simple-cache)[ RSS](/packages/bertptrs-mako-simple-cache/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (5)Versions (2)Used By (0)

mako-simple-cache
=================

[](#mako-simple-cache)

A cache wrapper implementing PSR 16 for the [Mako Framework](https://makoframework.com/).

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

[](#installation)

Add `bertptrs/mako-simple-cache` to your composer dependencies and you're good.

Usage
-----

[](#usage)

You can use this library to create instances of a PSR 16 `CacheInterface` from your existing Mako caches.

```
$store = $this->cache->instance();

$cache = new bertptrs\mako\SimpleCacheWrapper($store);
```

Then you can use that cache to your hearts content. Optionally, you can use the optional second parameter of the constructor to add a prefix to the keys, in order to prevent key collisions.

Secondly, you can optionally add the `bertptrs\mako\SimpleCacheService`to your Mako services in `app/config/application.php`. This registers the `SimpleCacheWrapper` with the dependency injection to automatically provide the `CacheInterface` in dependency injections.

Limitations
-----------

[](#limitations)

Due to the way the Mako cache works, you cannot store the value `false`directly, instead requiring you to wrap it in something. Secondly, since Mako cache keys need to be strings, they need to be here as well.

License
-------

[](#license)

This library is released under the GPL. If that bothers you, feel free to create an issue.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

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

Unknown

Total

1

Last Release

2509d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e86239cab6d01f69aae6c6569b0af03bf7c6ef4ed75d06b77aa2643775135202?d=identicon)[bertptrs](/maintainers/bertptrs)

---

Top Contributors

[![bertptrs](https://avatars.githubusercontent.com/u/861864?v=4)](https://github.com/bertptrs "bertptrs (5 commits)")

---

Tags

mako-frameworkphppsr-16

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/bertptrs-mako-simple-cache/health.svg)

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

###  Alternatives

[laminas/laminas-cache

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

1076.9M130](/packages/laminas-laminas-cache)[cache/adapter-common

Common classes for PSR-6 adapters

11124.4M38](/packages/cache-adapter-common)[cache/filesystem-adapter

A PSR-6 cache implementation using filesystem. This implementation supports tags

705.8M82](/packages/cache-filesystem-adapter)[cache/array-adapter

A PSR-6 cache implementation using a php array. This implementation supports tags

548.3M151](/packages/cache-array-adapter)[cache/redis-adapter

A PSR-6 cache implementation using Redis (PhpRedis). This implementation supports tags

523.9M27](/packages/cache-redis-adapter)[cache/simple-cache-bridge

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

423.1M27](/packages/cache-simple-cache-bridge)

PHPackages © 2026

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