PHPackages                             lluiscamino/fast-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. lluiscamino/fast-cache

ActiveLibrary[Caching](/categories/caching)

lluiscamino/fast-cache
======================

Simple caching system for PHP applications

1.0.0(6y ago)228MITPHP

Since Feb 12Pushed 6y ago1 watchersCompare

[ Source](https://github.com/lluiscamino/fast-cache)[ Packagist](https://packagist.org/packages/lluiscamino/fast-cache)[ RSS](/packages/lluiscamino-fast-cache/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

fast-cache
==========

[](#fast-cache)

Simple caching system for PHP applications.

Installing
----------

[](#installing)

Use the following command to install via Composer:

```
composer require lluiscamino/fast-cache

```

Usage
-----

[](#usage)

```
$cache = new FastCache(21600); // Cache lifetime in seconds
$cache->start();
echo "Hola!"; // Display content
$cache->end();
```

Once a user visits your website for the first time, a cached version of the page will be created and served for the following requests in the specified time.

If for some reason you don't want the current content to be saved, you can finish with `$cache->end(false);` and the content will not be cached.

Apart from time, you can also specify two more parameters in the constructor:

```
__construct(int $time, string $file = null, string $dir = '')
```

- `string $file`: Name of the (file.php) that identifies the page being cached. Use this option to create different cached versions of the same page. Leave blank to automatically select the file from which the object is being created.
- `string $dir`: Subdirectory where the cache file of the page will be saved.

### Configuration

[](#configuration)

```
FastCache::$path = 'custom-dir'; // Cache files directory
FastCache::$announce = false; // Disable "Serving cached file fromServing cached file from..." comment
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

2279d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1823ce0140e68e52c146b8e78b36ffcfff49727e39cc95a1e8520d876aad6d24?d=identicon)[lluiscamino](/maintainers/lluiscamino)

---

Top Contributors

[![lluiscamino](https://avatars.githubusercontent.com/u/23014720?v=4)](https://github.com/lluiscamino "lluiscamino (16 commits)")

---

Tags

cachecachingcaching-library

### Embed Badge

![Health badge](/badges/lluiscamino-fast-cache/health.svg)

```
[![Health](https://phpackages.com/badges/lluiscamino-fast-cache/health.svg)](https://phpackages.com/packages/lluiscamino-fast-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)
