PHPackages                             alex-kalanis/kw\_cache\_psr - 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. alex-kalanis/kw\_cache\_psr

ActiveLibrary[Caching](/categories/caching)

alex-kalanis/kw\_cache\_psr
===========================

KWCMS Cache adapter for PSR-16

v3.0.0(2y ago)04BSD-3-ClausePHPPHP &gt;=7.4

Since Dec 2Pushed 2y ago1 watchersCompare

[ Source](https://github.com/alex-kalanis/kw_cache_psr)[ Packagist](https://packagist.org/packages/alex-kalanis/kw_cache_psr)[ RSS](/packages/alex-kalanis-kw-cache-psr/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (12)Versions (4)Used By (0)

kw\_cache\_psr
==============

[](#kw_cache_psr)

[![Build Status](https://github.com/alex-kalanis/kw_cache_psr/actions/workflows/code_checks.yml/badge.svg)](https://github.com/alex-kalanis/kw_cache_psr/actions/workflows/code_checks.yml/badge.svg)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/67f742109bcb9f9bfc87b26b6468f43a68f25209ff66f72cb8a631e7aade12ee/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616c65782d6b616c616e69732f6b775f63616368655f7073722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/alex-kalanis/kw_cache_psr/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/c648a935040fc65c6f06b467fb0591f6b9b003f4ebafcf1e771b94f5b5ee9649/68747470733a2f2f706f7365722e707567782e6f72672f616c65782d6b616c616e69732f6b775f63616368655f7073722f762f737461626c652e7376673f763d31)](https://packagist.org/packages/alex-kalanis/kw_cache_psr)[![Minimum PHP Version](https://camo.githubusercontent.com/0e9ac047546796cfdbe1423d1f4d91c8f37d2fbb11614a7900bb7686aaa5401f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230372e342d3838393242462e737667)](https://php.net/)[![Downloads](https://camo.githubusercontent.com/4a1fb426a52809b78a13b7abaa6c0c5213c3fc1a2b74e7e2fee4f64561097802/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616c65782d6b616c616e69732f6b775f63616368655f7073722e7376673f7631)](https://packagist.org/packages/alex-kalanis/kw_cache_psr)[![License](https://camo.githubusercontent.com/da583b3254e6d0a6894ec50fc3d52fdb8e519c33e08877130246cb2051ea53cc/68747470733a2f2f706f7365722e707567782e6f72672f616c65782d6b616c616e69732f6b775f63616368655f7073722f6c6963656e73652e7376673f763d31)](https://packagist.org/packages/alex-kalanis/kw_cache_psr)[![Code Coverage](https://camo.githubusercontent.com/a0a1aa3b2a899c076c001450100f4f9bf6f00666516fdbd29c8fe94fbedc0820/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616c65782d6b616c616e69732f6b775f63616368655f7073722f6261646765732f636f7665726167652e706e673f623d6d617374657226763d31)](https://scrutinizer-ci.com/g/alex-kalanis/kw_cache_psr/?branch=master)

PSR adapter for connecting that in KWCMS. Use [PSR-16](https://www.php-fig.org/psr/psr-16/). Can use original kw\_cache, kw\_files and kw\_storage as cache storage.

PHP Installation
----------------

[](#php-installation)

```
composer.phar require alex-kalanis/kw_cache_psr
```

(Refer to [Composer Documentation](https://github.com/composer/composer/blob/master/doc/00-intro.md#introduction) if you are not familiar with composer)

PHP Usage
---------

[](#php-usage)

1.) Use your autoloader (if not already done via Composer autoloader)

2.) Set storage(s) which will be used by cache.

3.) Connect the "kalanis\\kw\_cache\_psr\*" into your app. Extends it for setting your case.

4.) Just call it

Caveats
-------

[](#caveats)

Beware that this implementation usually ignore Time-To-Live, because there is no good way to store necessary info on filesystem or in raw memory. And KWCMS is based on these structures. If you really want to rely on that please use Redis or something similar. Redis can be connected via kw\_storage via *alex-kalanis/redis-wrapper* package with necessary support already there.

Also there is a limitation that the files with normal/binary strings inside cannot store complicated structures and primitives together at once. PHP's serialization can help only so far. So if you have something so special, please implement your own format encoder/decoder with *kalanis\\kw\_cache\\Interfaces\\IFormat*interface. Or better: Store just the data from the objects and expect returning them in strings. That can be done with one bridge which can re-create necessary objects and types and normal (de)serialization.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

Total

3

Last Release

767d ago

Major Versions

v1.0.0 → v2.0.02024-04-03

v2.0.0 → v3.0.02024-04-04

### Community

Maintainers

![](https://www.gravatar.com/avatar/499b0a541b787cdb31412f578c7b94c9790bcbee7de12c65b6101c6ce45ef6f0?d=identicon)[alex-kalanis](/maintainers/alex-kalanis)

---

Top Contributors

[![alex-kalanis](https://avatars.githubusercontent.com/u/59184183?v=4)](https://github.com/alex-kalanis "alex-kalanis (13 commits)")

---

Tags

cache

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/alex-kalanis-kw-cache-psr/health.svg)

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

###  Alternatives

[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)[cache/redis-adapter

A PSR-6 cache implementation using Redis (PhpRedis). This implementation supports tags

523.9M27](/packages/cache-redis-adapter)

PHPackages © 2026

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