PHPackages                             kodus/mock-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. [Testing &amp; Quality](/categories/testing)
4. /
5. kodus/mock-cache

ActiveLibrary[Testing &amp; Quality](/categories/testing)

kodus/mock-cache
================

PSR-16 cache-implementation for integration tests

2.1.0(1y ago)265.1k↓49.1%15MITPHPPHP &gt;= 8.0

Since Dec 2Pushed 1y ago2 watchersCompare

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

READMEChangelog (5)Dependencies (3)Versions (7)Used By (5)

kodus/mock-cache
================

[](#kodusmock-cache)

[![PHP Version](https://camo.githubusercontent.com/487804500a039aee09e5d93e41b745b4cd68dcc0fdf801e67d26d30b93f83358/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e302532422d626c75652e737667)](https://packagist.org/packages/kodus/mock-cache)[![Build Status](https://camo.githubusercontent.com/83ec2747891a186954dd87e34ca4a0e9febeee4bd694fe82e50721533192d83b/68747470733a2f2f7472617669732d63692e6f72672f6b6f6475732f6d6f636b2d63616368652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/kodus/mock-cache)[![Code Coverage](https://camo.githubusercontent.com/729c67ca16fe7a47f0915f87c1f8ece779c9b66938e510bacf058519609f7ab5/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6b6f6475732f6d6f636b2d63616368652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/kodus/mock-cache/?branch=master)

This library provides a [PSR-16](https://github.com/php-fig/fig-standards/blob/master/proposed/simplecache.md)cache-implementation for integration testing, backed by a simple `array`.

It simulates a simple system clock and expiration - in your tests, calling e.g. `$cache->skipTime(10)` will travel forward in time 10 seconds, but time will otherwise stand still, so you don't need to write integration tests that have to `sleep()` to test for side-effects from cache-expiration.

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~723 days

Total

6

Last Release

540d ago

Major Versions

0.1.0 → 1.0.02017-02-07

1.1.0 → 2.0.02022-08-24

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

1.1.0PHP &gt;= 8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5709900?v=4)[Thomas Nordahl Pedersen](/maintainers/thomasnordahl-dk)[@thomasnordahl-dk](https://github.com/thomasnordahl-dk)

![](https://avatars.githubusercontent.com/u/13201214?v=4)[Bo Andersen](/maintainers/boan-jfm)[@boan-jfm](https://github.com/boan-jfm)

![](https://avatars.githubusercontent.com/u/32329468?v=4)[Jesper Østergaard Jensen](/maintainers/JyskFynskeMedierJoej)[@JyskFynskeMedierJoej](https://github.com/JyskFynskeMedierJoej)

![](https://avatars.githubusercontent.com/u/25659854?v=4)[Michelle Fich](/maintainers/mifich)[@mifich](https://github.com/mifich)

---

Top Contributors

[![mindplay-dk](https://avatars.githubusercontent.com/u/103348?v=4)](https://github.com/mindplay-dk "mindplay-dk (3 commits)")[![vortrixs](https://avatars.githubusercontent.com/u/15426116?v=4)](https://github.com/vortrixs "vortrixs (3 commits)")[![boan-jfm](https://avatars.githubusercontent.com/u/13201214?v=4)](https://github.com/boan-jfm "boan-jfm (2 commits)")

###  Code Quality

TestsCodeception

### Embed Badge

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

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[phpoffice/phpspreadsheet

PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine

14.3k318.2M1.5k](/packages/phpoffice-phpspreadsheet)[cakephp/cakephp

The CakePHP framework

8.9k19.5M1.8k](/packages/cakephp-cakephp)[illuminate/contracts

The Illuminate Contracts package.

706130.3M13.3k](/packages/illuminate-contracts)[algolia/algoliasearch-client-php

API powering the features of Algolia.

69735.1M159](/packages/algolia-algoliasearch-client-php)[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)

PHPackages © 2026

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