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(7y ago)06GPL-3.0-or-laterPHPCI failing

Since Jun 30Pushed 7y 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 2w 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 21% 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

2556d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/861864?v=4)[Bert Peters](/maintainers/bertptrs)[@bertptrs](https://github.com/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

1067.2M145](/packages/laminas-laminas-cache)[sabre/cache

Simple cache abstraction layer implementing PSR-16

551.3M4](/packages/sabre-cache)[neos/cache

Neos Cache Framework

102.1M36](/packages/neos-cache)

PHPackages © 2026

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