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

ActiveLibrary[Caching](/categories/caching)

fmihel/php-cache
================

php,cache

v3.0.0(1y ago)11.1k[1 PRs](https://github.com/fmihel/php-cache/pulls)MITPHPCI passing

Since Sep 15Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/fmihel/php-cache)[ Packagist](https://packagist.org/packages/fmihel/php-cache)[ RSS](/packages/fmihel-php-cache/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (5)Versions (15)Used By (0)

php-cache
=========

[](#php-cache)

simple cache for php functions result

### Install

[](#install)

`composer require fmihel/php-cache`

### Example

[](#example)

```

```

class Cache
-----------

[](#class-cache)

nameparamsnoteget(string $key,array $params,$callback,$lifetime):any$key - unique key
$params - array of input params
 $callback - wrap function for caching method
$lifetime - period in hourscaching function resultclear()clear cachesetDriver(iCacheDriver $driver)$driver - cache engine driver, implements `iCacheDriver` interfaceset cache driver,
 exists `SimpleCacheDriver`,`FileCacheDriver`,`SerCacheDriver`enable(bool=null)bool - if boolean setenable/disable caching, or return curent set if bool===nullclearOld()removes outdated caches

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance58

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Every ~126 days

Recently: every ~46 days

Total

10

Last Release

658d ago

Major Versions

v0.1.0 → v1.0.02024-01-29

v1.1.0 → v2.0.02024-04-30

v2.0.2 → v3.0.02024-10-28

### Community

Maintainers

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

---

Top Contributors

[![fmihel](https://avatars.githubusercontent.com/u/10561794?v=4)](https://github.com/fmihel "fmihel (21 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[iazaran/smart-cache

Smart Cache is a caching optimization package designed to enhance the way your Laravel application handles data caching. It intelligently manages large data sets by compressing, chunking, or applying other optimization strategies to keep your application performant and efficient.

21114.2k](/packages/iazaran-smart-cache)[phpfastcache/phpssdb

PHP SSDB Driver for phpFastCache

14736.9k1](/packages/phpfastcache-phpssdb)[rapidwebltd/rw-file-cache

RW File Cache is a PHP File-based Caching Library. Its syntax is designed to closely resemble the PHP memcache extension.

15196.8k7](/packages/rapidwebltd-rw-file-cache)[yuzuru-s/redis-recommend

Wrapping Redis's sorted set APIs for specializing recommending operations.

392.9k](/packages/yuzuru-s-redis-recommend)[ichhabrecht/intcache

Turn uncachable page objects into cacheable links

193.9k](/packages/ichhabrecht-intcache)

PHPackages © 2026

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