PHPackages                             pawel-brzezinski/smart-cache-component - 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. pawel-brzezinski/smart-cache-component

ActiveLibrary

pawel-brzezinski/smart-cache-component
======================================

Cache component with PSR-6 and external cache libraries as providers

01PHP

Since Feb 19Pushed 7y agoCompare

[ Source](https://github.com/pawel-brzezinski/smart-cache-component)[ Packagist](https://packagist.org/packages/pawel-brzezinski/smart-cache-component)[ RSS](/packages/pawel-brzezinski-smart-cache-component/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

SmartCache component
====================

[](#smartcache-component)

The PSR-16 cache component that wraps other external cache libraries. It gives you the opportunity to easily change the cache library in your applications.

Installation
------------

[](#installation)

Download SmartCache component via Composer:

```
composer require pawel-brzezinski/smart-cache-component

```

Supported cache libraries
-------------------------

[](#supported-cache-libraries)

- [Symfony Cache Component](docs/symfony_cache_component.md)

Cache tags
----------

[](#cache-tags)

SmartCache component provides tagging methods for cache item and cache pool for libraries which support tagging.

### Example

[](#example)

**Tagging cache item**

```
$cacheItem1 = $cache->getItem('foo');
$cacheItem1->setTags(['tag1', 'tag2']);

$cacheItem2 = $cache->getItem('bar');
$cacheItem2->setTags(['tag2', 'tag3']);

$cache->save($cacheItem1);
$cache->save($cacheItem2);

```

**Invalidating cache by cache tags**

```
// All cache keys tagged by "tag2" tag will be invalidated
$cache->invalidateTags(['tag2']);

```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1fd10740e3d49fb13297f621180b9f2ea968954f97971ad8e2f38dae9dc683ad?d=identicon)[murgrabia](/maintainers/murgrabia)

---

Top Contributors

[![pawel-brzezinski](https://avatars.githubusercontent.com/u/27571847?v=4)](https://github.com/pawel-brzezinski "pawel-brzezinski (1 commits)")

### Embed Badge

![Health badge](/badges/pawel-brzezinski-smart-cache-component/health.svg)

```
[![Health](https://phpackages.com/badges/pawel-brzezinski-smart-cache-component/health.svg)](https://phpackages.com/packages/pawel-brzezinski-smart-cache-component)
```

PHPackages © 2026

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