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 1mo ago

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

28

—

LowBetter than 54% of packages

Maintenance44

Moderate activity, may be stable

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

447d 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.2k348.9M2.5k](/packages/symfony-cache)[laminas/laminas-cache

Caching implementation with a variety of storage options, as well as codified caching strategies for callbacks, classes, and output

1076.9M130](/packages/laminas-laminas-cache)[cache/adapter-common

Common classes for PSR-6 adapters

11124.4M38](/packages/cache-adapter-common)[cache/filesystem-adapter

A PSR-6 cache implementation using filesystem. This implementation supports tags

705.8M82](/packages/cache-filesystem-adapter)[cache/array-adapter

A PSR-6 cache implementation using a php array. This implementation supports tags

548.3M151](/packages/cache-array-adapter)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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