PHPackages                             sanzodown/simple-php-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. sanzodown/simple-php-cache

ActiveLibrary[Caching](/categories/caching)

sanzodown/simple-php-cache
==========================

A simple cache library in php.

01PHP

Since Apr 26Pushed 7y ago1 watchersCompare

[ Source](https://github.com/sanzodown/simple-php-cache)[ Packagist](https://packagist.org/packages/sanzodown/simple-php-cache)[ RSS](/packages/sanzodown-simple-php-cache/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

A simple cache library for php. It implement both a file and a memory ([APCu](https://www.php.net/manual/fr/book.apcu.php)) cache back-ends.

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

[](#installation)

As simple as :

```
composer require sanzodown/simple-php-cache

```

Usage
-----

[](#usage)

Both come with default configuration so if you don't bother, use it.

### File cache:

[](#file-cache)

```
$cache = new FileCache(
    'your/cache/path',
    'youNameFile'
);

```

### Memory cache:

[](#memory-cache)

Note that you must have the extension [APCu](https://www.php.net/manual/fr/book.apcu.php) enabled.

```
$cache = new ApcCache(
    3600, // Time to live
);

```

### Methods:

[](#methods)

```
$cache->set('key', 'Your datas');

$cache->get('test'); // Your datas

```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/bc6dbe89f5fd94505b4f6fcec603d048d1dc154fec351823621afb94ff226459?d=identicon)[sanzodown](/maintainers/sanzodown)

---

Top Contributors

[![sanzodown](https://avatars.githubusercontent.com/u/4226411?v=4)](https://github.com/sanzodown "sanzodown (8 commits)")

### Embed Badge

![Health badge](/badges/sanzodown-simple-php-cache/health.svg)

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

###  Alternatives

[predis/predis

A flexible and feature-complete Redis/Valkey client for PHP.

7.8k305.7M2.4k](/packages/predis-predis)[snc/redis-bundle

A Redis bundle for Symfony

1.0k39.4M67](/packages/snc-redis-bundle)[react/cache

Async, Promise-based cache interface for ReactPHP

444112.4M40](/packages/react-cache)[wp-media/wp-rocket

Performance optimization plugin for WordPress

7431.3M3](/packages/wp-media-wp-rocket)[illuminate/cache

The Illuminate Cache package.

12835.6M1.4k](/packages/illuminate-cache)[colinmollenhour/php-redis-session-abstract

A Redis-based session handler with optimistic locking

6325.6M14](/packages/colinmollenhour-php-redis-session-abstract)

PHPackages © 2026

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