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

ActiveLibrary[Caching](/categories/caching)

phpfit/cache-file
=================

PSR-16 Implementation of simple cache usinig file

1.0.0(9mo ago)04MITPHP

Since Aug 15Pushed 9mo agoCompare

[ Source](https://github.com/phpfit/cache-file)[ Packagist](https://packagist.org/packages/phpfit/cache-file)[ RSS](/packages/phpfit-cache-file/feed)WikiDiscussions main Synced 1mo ago

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

phpfit/cache-file
=================

[](#phpfitcache-file)

PSR-16 Implementation of simple cache usinig file

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

[](#installation)

```
composer require phpfit/cache-file
```

Usage
-----

[](#usage)

```
use PhpFit\CacheFile\File;

$cache = new File(__DIR__ . '/cache');

// Set cache for 12 second
$cache->set('key', 'value', 12);

$value = $cache->get('key', 'default');
```

License
-------

[](#license)

The phpfit/cache-file library is licensed under the MIT license. See [License File](LICENSE.md) for more information.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance58

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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

277d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5726035?v=4)[Iqbal Fauzi](/maintainers/iqbalfn)[@iqbalfn](https://github.com/iqbalfn)

---

Top Contributors

[![iqbalfn](https://avatars.githubusercontent.com/u/5726035?v=4)](https://github.com/iqbalfn "iqbalfn (2 commits)")

### Embed Badge

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

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

###  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)
