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

ActiveLibrary[Caching](/categories/caching)

optimisme/optimisme-cache
=========================

A simple cache package

V1.2(6y ago)134Apache-2.0PHPPHP &gt;=7.0

Since Apr 20Pushed 6y ago1 watchersCompare

[ Source](https://github.com/RomainPct/OptimismeCache)[ Packagist](https://packagist.org/packages/optimisme/optimisme-cache)[ Docs](https://github.com/RomainPct/OptimismeCache)[ RSS](/packages/optimisme-optimisme-cache/feed)WikiDiscussions master Synced 6d ago

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

Optimisme Cache
===============

[](#optimisme-cache)

Insert a simple cache system on your website in less than 5 minutes
-------------------------------------------------------------------

[](#insert-a-simple-cache-system-on-your-website-in-less-than-5-minutes)

### How ton install Optimisme Cache ?

[](#how-ton-install-optimisme-cache-)

You can install Optimisme Cache thank's to composer

```
composer require optimisme/optimisme-cache

```

### How to use Optimisme Cache ? (2 methods)

[](#how-to-use-optimisme-cache--2-methods)

#### 1. Using the cache function

[](#1-using-the-cache-function)

```

```

#### 2. Using the open and close functions

[](#2-using-the-open-and-close-functions)

```

    // Write your code there

```

### Settings

[](#settings)

When you create an instance of Optimisme Cache, you can set two specific settings :

- $name : You can specifiy a custom name for exemple is this component is used many times in different places. By default or if you set it to null, a name will be automatically generated according to the current page url.
- $cachetime : Time in seconds while this specific cached code will stay in cache

Optimisme Cache also supports caching subcomponents of page or components.

```

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.3% 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 ~3 days

Total

4

Last Release

2209d ago

Major Versions

0.1 → 1.02020-04-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/2a3482861cb4993d4bd5899774c315605dafabccd3e2b234723848daf176a0a2?d=identicon)[RomainPct](/maintainers/RomainPct)

---

Top Contributors

[![RomainPct](https://avatars.githubusercontent.com/u/30570099?v=4)](https://github.com/RomainPct "RomainPct (12 commits)")[![Satwa](https://avatars.githubusercontent.com/u/2183062?v=4)](https://github.com/Satwa "Satwa (1 commits)")

---

Tags

htmlcachecachingSimple

### Embed Badge

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

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

###  Alternatives

[psr/simple-cache

Common interfaces for simple caching

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

Async, Promise-based cache interface for ReactPHP

444112.4M40](/packages/react-cache)[tedivm/stash

The place to keep your cache.

9824.8M124](/packages/tedivm-stash)[spatie/blink

Cache that expires in the blink of an eye

1685.0M8](/packages/spatie-blink)[gregwar/cache

A lightweight file-system cache system

1084.5M22](/packages/gregwar-cache)[silverstripe/staticpublishqueue

Static publishing queue to create static versions of pages for enhanced performance and security

45135.4k4](/packages/silverstripe-staticpublishqueue)

PHPackages © 2026

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