PHPackages                             jiaweixs/simplecache - 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. jiaweixs/simplecache

ActiveLibrary[Caching](/categories/caching)

jiaweixs/simplecache
====================

A PHP Simple Cache Base on File.

1.2(8y ago)22.9k42MITPHPPHP ^5.5.9 || ^7.0

Since Jul 29Pushed 8y ago1 watchersCompare

[ Source](https://github.com/kulokai/simplecache)[ Packagist](https://packagist.org/packages/jiaweixs/simplecache)[ RSS](/packages/jiaweixs-simplecache/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (4)DependenciesVersions (5)Used By (2)

### Installation

[](#installation)

```
//install by composer
composer require jiaweixs/simplecache

//or clone from github
git clone git@github.com:kulokai/simplecache.git

```

### Usage

[](#usage)

```
//init the tool
SimpleCache::init('.../path/to/cache');

//init the tool and set default expire time.
SimpleCache::init('.../path/to/cache',600);
```

```
//set cache
$isSuccess = SimpleCache::set('key','hello world');

//set cache and set expire time for the 'key'.
$isSuccess = SimpleCache::set('key','hello world',600);
```

```
//get cache
$value = SimpleCache::get('key');

//get cache and set default value for the 'key'.
$value = SimpleCache::get('key','default value');
```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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

Every ~8 days

Total

4

Last Release

3226d ago

### Community

Maintainers

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

---

Top Contributors

[![kulokai](https://avatars.githubusercontent.com/u/10880406?v=4)](https://github.com/kulokai "kulokai (11 commits)")

---

Tags

cachesimple-cache

### Embed Badge

![Health badge](/badges/jiaweixs-simplecache/health.svg)

```
[![Health](https://phpackages.com/badges/jiaweixs-simplecache/health.svg)](https://phpackages.com/packages/jiaweixs-simplecache)
```

###  Alternatives

[psr/simple-cache

Common interfaces for simple caching

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

Simple cache abstraction layer implementing PSR-16

551.3M4](/packages/sabre-cache)[voku/simple-cache

Simple Cache library

322.6M9](/packages/voku-simple-cache)

PHPackages © 2026

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