PHPackages                             nickolasburr/ocache.php - 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. nickolasburr/ocache.php

ActiveLibrary[Caching](/categories/caching)

nickolasburr/ocache.php
=======================

PSR-16 object cache for PHP.

1.1.0(1y ago)01MITPHPPHP ^8.2

Since Feb 3Pushed 1y ago1 watchersCompare

[ Source](https://github.com/nickolasburr/ocache.php)[ Packagist](https://packagist.org/packages/nickolasburr/ocache.php)[ RSS](/packages/nickolasburr-ocachephp/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (3)Used By (0)

ocache.php
==========

[](#ocachephp)

- [Description](#description)
- [Installation](#installation)
- [Examples](#examples)

[Description](#id1)
-------------------

[](#description)

PSR-16 object cache for PHP.

[Installation](#id2)
--------------------

[](#installation)

```
composer require nickolasburr/ocache.php:^1.0
```

[Examples](#id3)
----------------

[](#examples)

```
...

use function Ocache\cache;

$cache = cache();
$entry = $cache->get('example');

if ($entry === null) {
    $entry = new \ArrayIterator(range(0, 10));
    $cache->set('example', $entry);
}

...
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance41

Moderate activity, may be stable

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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 ~22 days

Total

2

Last Release

493d ago

PHP version history (2 changes)1.0.0PHP ^8.1

1.1.0PHP ^8.2

### Community

Maintainers

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

---

Top Contributors

[![nickolasburr](https://avatars.githubusercontent.com/u/4663695?v=4)](https://github.com/nickolasburr "nickolasburr (76 commits)")

---

Tags

cachephppsr-16

### Embed Badge

![Health badge](/badges/nickolasburr-ocachephp/health.svg)

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

###  Alternatives

[symfony/cache

Provides extended PSR-6, PSR-16 (and tags) implementations

4.2k373.5M3.3k](/packages/symfony-cache)[symfony/dependency-injection

Allows you to standardize and centralize the way objects are constructed in your application

4.2k455.6M9.6k](/packages/symfony-dependency-injection)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)

PHPackages © 2026

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