PHPackages                             mouf/utils.cache.file-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. mouf/utils.cache.file-cache

ActiveMouf-library[Caching](/categories/caching)

mouf/utils.cache.file-cache
===========================

This package contains a cache mechanism that relies on temporary files.

v2.2.1(9y ago)0379.9k↓53.7%42MITPHPPHP &gt;=5.3.0

Since Jan 21Pushed 9y ago5 watchersCompare

[ Source](https://github.com/thecodingmachine/utils.cache.file-cache)[ Packagist](https://packagist.org/packages/mouf/utils.cache.file-cache)[ Docs](https://github.com/thecodingmachine/utils.cache.file-cache)[ RSS](/packages/mouf-utilscachefile-cache/feed)WikiDiscussions 2.2 Synced 2d ago

READMEChangelog (3)Dependencies (3)Versions (10)Used By (2)

[![Latest Stable Version](https://camo.githubusercontent.com/e5f0399b58af05fc765f026498ab1ac8c29cb4a37f65bfd61c710f4272c05bea/68747470733a2f2f706f7365722e707567782e6f72672f6d6f75662f7574696c732e63616368652e66696c652d63616368652f762f737461626c652e737667)](https://packagist.org/packages/mouf/utils.cache.file-cache)[![Total Downloads](https://camo.githubusercontent.com/d40ed54071e922730016b8113f151c3be1b3cdffc14bd1431e5c55756b333dd5/68747470733a2f2f706f7365722e707567782e6f72672f6d6f75662f7574696c732e63616368652e66696c652d63616368652f646f776e6c6f6164732e737667)](https://packagist.org/packages/mouf/utils.cache.file-cache)[![Latest Unstable Version](https://camo.githubusercontent.com/4833a36142f6130d3237f80c2e615736e8a09fb31a97d423ae16715b48fc223d/68747470733a2f2f706f7365722e707567782e6f72672f6d6f75662f7574696c732e63616368652e66696c652d63616368652f762f756e737461626c652e737667)](https://packagist.org/packages/mouf/utils.cache.file-cache)[![License](https://camo.githubusercontent.com/5b5ab8bf0e33be27781581feea4bf605eb049ac712cb02ef4dedf531247eaa3f/68747470733a2f2f706f7365722e707567782e6f72672f6d6f75662f7574696c732e63616368652e66696c652d63616368652f6c6963656e73652e737667)](https://packagist.org/packages/mouf/utils.cache.file-cache)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/d608ab9646263cb471e66f9124c0160cc798755855365727923a8304ed9937e9/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f746865636f64696e676d616368696e652f7574696c732e63616368652e66696c652d63616368652f6261646765732f7175616c6974792d73636f72652e706e673f623d322e32)](https://scrutinizer-ci.com/g/thecodingmachine/utils.cache.file-cache/?branch=2.2)[![Build Status](https://camo.githubusercontent.com/75ccf3e9938e47f50680bba7cf9bf3d4502b549888cfc6d300e31faed03eca3c/68747470733a2f2f7472617669732d63692e6f72672f746865636f64696e676d616368696e652f7574696c732e63616368652e66696c652d63616368652e737667)](https://travis-ci.org/thecodingmachine/utils.cache.file-cache)[![Coverage Status](https://camo.githubusercontent.com/3d9cb06f53bce38706204cb0b9be879cc7778dc4d580a7b8e1381b520afb6d12/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f746865636f64696e676d616368696e652f7574696c732e63616368652e66696c652d63616368652f62616467652e737667)](https://coveralls.io/r/thecodingmachine/utils.cache.file-cache)

Mouf's file cache service
=========================

[](#moufs-file-cache-service)

This package contains 2 implementations of Mouf's CacheInterface that stores the cache in files on the server's hard drive.

- `FileCache` is a service that stores cache keys in files. The value is *serialized*.
- `PhpFileCache` is a **more efficient** service that stores cache keys in executable PHP files. You should prefer this implementation unless you have security concerns about `var_export`ing your cache keys.

To learn more about the cache interface, please see the [cache system documentation](http://mouf-php.com/packages/mouf/utils.cache.cache-interface).

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity64

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

Recently: every ~138 days

Total

10

Last Release

3571d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1104771?v=4)[mouf](/maintainers/mouf)[@Mouf](https://github.com/Mouf)

---

Top Contributors

[![moufmouf](https://avatars.githubusercontent.com/u/1290952?v=4)](https://github.com/moufmouf "moufmouf (16 commits)")[![nguyenk](https://avatars.githubusercontent.com/u/2227554?v=4)](https://github.com/nguyenk "nguyenk (13 commits)")[![xhuberty](https://avatars.githubusercontent.com/u/8350192?v=4)](https://github.com/xhuberty "xhuberty (9 commits)")[![npeguin](https://avatars.githubusercontent.com/u/2227721?v=4)](https://github.com/npeguin "npeguin (2 commits)")[![vaidiep](https://avatars.githubusercontent.com/u/2227695?v=4)](https://github.com/vaidiep "vaidiep (2 commits)")

---

Tags

cachefilemouf

### Embed Badge

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

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

###  Alternatives

[symfony/cache

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

4.2k373.5M3.3k](/packages/symfony-cache)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[lochmueller/staticfilecache

Transparent static file cache solution using mod\_rewrite and mod\_expires. Increase performance for static pages by a factor of 230!!

1271.4M4](/packages/lochmueller-staticfilecache)[matomo/cache

PHP caching library based on Doctrine cache

381.3M21](/packages/matomo-cache)[vink/nova-cache-card

Manage your application's cache from a handy Laravel Nova dashboard card.

26321.4k1](/packages/vink-nova-cache-card)[mmamedov/page-cache

PageCache is a lightweight PHP library for full page cache. It uses various strategies to differentiate among separate versions of the same page.

7913.3k1](/packages/mmamedov-page-cache)

PHPackages © 2026

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