PHPackages                             nokitakaze/keyvalue - 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. nokitakaze/keyvalue

ActiveLibrary[Caching](/categories/caching)

nokitakaze/keyvalue
===================

Key Value Storage

v0.1.6(7y ago)038[1 issues](https://github.com/nokitakaze/php-keyvalue/issues)Apache-2.0PHPPHP ^5.6 | ^7.0.9

Since May 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/nokitakaze/php-keyvalue)[ Packagist](https://packagist.org/packages/nokitakaze/keyvalue)[ RSS](/packages/nokitakaze-keyvalue/feed)WikiDiscussions master Synced 2mo ago

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

PSR-16 compatible Key Value storage implementation
==================================================

[](#psr-16-compatible-key-value-storage-implementation)

Current status
--------------

[](#current-status)

### General

[](#general)

[![Build Status](https://camo.githubusercontent.com/1660897ec014e188ffa75e7b599485611303cec24c801e9c835fffd96d010b60/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6e6f6b6974616b617a652f7068702d6b657976616c75652e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/nokitakaze/php-keyvalue)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/733f7e144b18aaacfa4257cd5643a4fb99eea37defd064d116e936f43e23b729/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e6f6b6974616b617a652f7068702d6b657976616c75652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/nokitakaze/php-keyvalue/)[![Code Coverage](https://camo.githubusercontent.com/d8e7354da3091e9dd037d9476f135d43459ca66a1023414fbf8bd90c1a02ac68/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e6f6b6974616b617a652f7068702d6b657976616c75652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/nokitakaze/php-keyvalue/)

Usage
-----

[](#usage)

At first

```
composer require nokitakaze/keyvalue
```

And then

```
require_once 'vendor/autoload.php';

// 1
$file_storage = new FileStorage([
    'folder' => '/dev/shm',
]);
$file_storage->set('foo', 'bar');
echo $file_storage->get('foo', 'bar');

// 2
$file_storage = new FileStorage([
    'folder' => '/dev/shm',
]);
$file_storage->set('foo', 'bar');
echo $file_storage->get('foo', 123);

// 3
$redis_storage = new RedisStorage([
    'database' => 1,
]);
$redis_storage->set('foo', 'bar');
echo $redis_storage->get('foo', 'default_value');

// @todo Заменить
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Recently: every ~147 days

Total

7

Last Release

2627d ago

PHP version history (2 changes)v0.1.0PHP ~5.6.0 || &gt;=7.0.9

v0.1.4PHP ^5.6 | ^7.0.9

### Community

Maintainers

![](https://www.gravatar.com/avatar/65bb9967baf399044eb2d9f231fc3ac90b58677e36083f4ae3aa9b59665b6858?d=identicon)[nokitakaze](/maintainers/nokitakaze)

---

Top Contributors

[![nokitakaze](https://avatars.githubusercontent.com/u/9131758?v=4)](https://github.com/nokitakaze "nokitakaze (14 commits)")

---

Tags

redissimple-cachepsr-16Key valuekeyvaluekey value storagekeyvalue storage

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nokitakaze-keyvalue/health.svg)

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

###  Alternatives

[sabre/cache

Simple cache abstraction layer implementing PSR-16

541.2M3](/packages/sabre-cache)

PHPackages © 2026

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