PHPackages                             ihipop/psr-null-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. ihipop/psr-null-cache

ActiveLibrary[Caching](/categories/caching)

ihipop/psr-null-cache
=====================

NullCache implementation (Fake Storage) of PSR-16 with Basic data validation

v1.0(7y ago)02.4k↓43.8%11LGPL-3.0+PHP

Since Apr 1Pushed 7y ago1 watchersCompare

[ Source](https://github.com/ihipop/PSR-NullCache)[ Packagist](https://packagist.org/packages/ihipop/psr-null-cache)[ Docs](https://github.com/ihipop/PSR-NullCache)[ RSS](/packages/ihipop-psr-null-cache/feed)WikiDiscussions master Synced 1mo ago

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

NullCache | [中文说明](README_CN.md)
--------------------------------

[](#nullcache--中文说明)

This Package Is a `Null` implementation of PSR-16 `SimpleCache` with `Basic data validation`

Why this Package ?
==================

[](#why-this-package-)

There is nothing like [NullLogger](https://github.com/php-fig/log/blob/master/Psr/Log/NullLogger.php) of PSR-3 in PSR-16/PSR-6

I (Or if you) don't want to write these code every where
--------------------------------------------------------

[](#i-or-if-you-dont--want-to-write-these-code-every-where)

```
//...
if ($this->cache){
    $this->cache->set($key,$value,$ttl);
}
//...
if ($this->cache){
    $this->cache->get($key)
}
//...
```

Then You need this Package.

And want some Basic data validation ?
-------------------------------------

[](#and-want-some-basic-data-validation-)

PSR-16 have some special `InvalidArgumentException` to throw when enter with invalid data. You Will have these check if you use These Package,`InvalidArgumentException` will be thrown when it is necessary , to let you know your problem in earlier.

Usage
=====

[](#usage)

`composer require ihipop/psr-null-cache`

In your `__construction` or `DI container` initialization

```
///...
$logger = new \ihipop\PsrNullCache\SimpleCache\NullCache(false);
///...

```

CacheInterfaceProxy
===================

[](#cacheinterfaceproxy)

Use this trait when you want a quick implementation of PSR `CacheInterface` quickly via a Proxy class.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community10

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

Unknown

Total

1

Last Release

2605d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/09aa7e15729cdc00fb69f7e5be346453d34dd2da4bd6cc61502f931757c9b872?d=identicon)[ihipop](/maintainers/ihipop)

---

Top Contributors

[![ihipop](https://avatars.githubusercontent.com/u/423077?v=4)](https://github.com/ihipop "ihipop (13 commits)")

---

Tags

nullcachepsrpsr-16simplecache

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ihipop-psr-null-cache/health.svg)

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

###  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/cache

Library of all the php-cache adapters

2712.7M22](/packages/cache-cache)[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)

PHPackages © 2026

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