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

ActiveLibrary[Caching](/categories/caching)

hav/cache
=========

A cache library that is implmeneted from PSR-6

v1.0(10y ago)022MITPHPPHP &gt;=5.4

Since Jan 12Pushed 10y ago1 watchersCompare

[ Source](https://github.com/ohavsvik/CachePsr6)[ Packagist](https://packagist.org/packages/hav/cache)[ Docs](http://oskarhavsvik.se/)[ RSS](/packages/hav-cache/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

[![Build Status](https://camo.githubusercontent.com/eb18799cded7a7f85cb21758f5dee4588df61331f9b7373626a2051b5e2a1f34/68747470733a2f2f7472617669732d63692e6f72672f6f6861767376696b2f4361636865507372362e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ohavsvik/CachePsr6) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/3e25ca4f4fd982d542f5306c5c1b956629e8754dba867073461e38009ddffa17/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6f6861767376696b2f4361636865507372362f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ohavsvik/CachePsr6/?branch=master) [![Code Coverage](https://camo.githubusercontent.com/dab77f3855687705cb9ba2f5d7b722a0d2820c442ec7a49fc39df082b1631dff/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6f6861767376696b2f4361636865507372362f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ohavsvik/CachePsr6/?branch=master) [![Build Status](https://camo.githubusercontent.com/d047d8c98987e93f24eb84944f2d39f9cea343f4d47c6c825a39ac3fffbcdc4c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6f6861767376696b2f4361636865507372362f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ohavsvik/CachePsr6/build-status/master)

A PSR-6 cache library
---------------------

[](#a-psr-6-cache-library)

A cache library that follows the PSR-6 standard.

Run `webroot/cacheTest.php` on your localhost to try it.

### Using the library with Anax-MVC

[](#using-the-library-with-anax-mvc)

- Install the `hav/cache` package via composer
- Move the folder `vendor/hav/cache/src/Cache` to your `app/src` folder
- Add the `hav/cache/webroot/index.php` file to your `webroot` folder
- Create folder named `Cache` in your `app/views` folder and move the `hav/cache/webroot/example.tpl.php` file to it
- Use the route `cache` to view the example

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

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

Unknown

Total

1

Last Release

3775d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/96bf5024e8da7bb615f2a0447ecd40ff8d802ba04477352b58f42a018670c53a?d=identicon)[ohavsvik](/maintainers/ohavsvik)

---

Top Contributors

[![ohavsvik](https://avatars.githubusercontent.com/u/15996391?v=4)](https://github.com/ohavsvik "ohavsvik (20 commits)")

---

Tags

cachepsr6

### Embed Badge

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

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

###  Alternatives

[psr/simple-cache

Common interfaces for simple caching

8.1k727.3M2.1k](/packages/psr-simple-cache)[psr/cache

Common interface for caching libraries

5.2k686.9M1.3k](/packages/psr-cache)[symfony/cache

Provides extended PSR-6, PSR-16 (and tags) implementations

4.2k348.9M2.5k](/packages/symfony-cache)[tedivm/stash

The place to keep your cache.

9824.8M124](/packages/tedivm-stash)[react/cache

Async, Promise-based cache interface for ReactPHP

444112.4M40](/packages/react-cache)[cache/tag-interop

Framework interoperable interfaces for tags

10525.0M12](/packages/cache-tag-interop)

PHPackages © 2026

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