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

ActiveLibrary[Caching](/categories/caching)

mag310/simple-file-cache
========================

Simple file`s cache component

1.0.0(5y ago)18MITPHPPHP &gt;=5.3.0

Since Sep 21Pushed 5y ago1 watchersCompare

[ Source](https://github.com/mag310/simple-file-cache)[ Packagist](https://packagist.org/packages/mag310/simple-file-cache)[ RSS](/packages/mag310-simple-file-cache/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Simple File Cache
=================

[](#simple-file-cache)

Simple file`s cache component, implementing PSR-16

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

[](#installation)

- Run this command: `composer require mag310/simple-file-cache`

Usages
------

[](#usages)

Simple example

```
        $cache = new FileCache();

        $cache->set('custom_key', 'sample data');
        $data = $cache->get('custom_key');
        $cache->delete('custom_key');
```

Using categories:

```
    $category = 'category';
    $cache = new FileCache();

    $cache->set($category . '/key1', 'data1');
    $cache->set($category . '/key2', 'data2');

    $cache->delete($category);
```

### For Documentations

[](#for-documentations)

[psr/simple-cache-implementation](https://packagist.org/providers/psr/simple-cache-implementation)

Running Tests
-------------

[](#running-tests)

We are using `PHPUnit` for testing the module. Do the following:

- Run `./vendor/bin/phpunit`

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

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

2060d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0fd5796812182246a5d7c958d1b50a136fe03dadb05759afac25316db2d28a1f?d=identicon)[mag310](/maintainers/mag310)

---

Top Contributors

[![mag310](https://avatars.githubusercontent.com/u/12649945?v=4)](https://github.com/mag310 "mag310 (1 commits)")

---

Tags

cachephp-librarypsrpsr-16cachecachingsimple-cachepsr-16

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[psr/simple-cache

Common interfaces for simple caching

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

Simple cache abstraction layer implementing PSR-16

541.2M3](/packages/sabre-cache)[voku/simple-cache

Simple Cache library

322.5M7](/packages/voku-simple-cache)[webarchitect609/bitrix-cache

Comfortable fluent interface for Bitrix cache. Anti-stampede cache protection.

2831.2k8](/packages/webarchitect609-bitrix-cache)

PHPackages © 2026

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