PHPackages                             stevenlei/yii2-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. stevenlei/yii2-keyvalue

AbandonedArchivedYii2-extension[Utility &amp; Helpers](/categories/utility)

stevenlei/yii2-keyvalue
=======================

KeyValue

v1.0.1(8y ago)1161MITPHP

Since Mar 8Pushed 8y ago1 watchersCompare

[ Source](https://github.com/ShaneStevenLei/yii2-keyvalue)[ Packagist](https://packagist.org/packages/stevenlei/yii2-keyvalue)[ RSS](/packages/stevenlei-yii2-keyvalue/feed)WikiDiscussions master Synced today

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

KeyValue
========

[](#keyvalue)

KeyValue

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist stevenlei/yii2-keyvalue "^1.0.0"

```

or add

```
"stevenlei/yii2-keyvalue": "^1.0.0"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Configuration

Add `cache` configuration:

Use `FileCache`

```
return [
    'components' => [
        'cache' => [
            'class' => 'yii\caching\FileCache',
        ],
    ]
]

```

or `Memcache`

```
return [
    'components' => [
        'class'        => 'yii\caching\MemCache',
            'keyPrefix'    => '',
            'useMemcached' => true,
            'servers'      => [
                [
                    'host' => '127.0.0.1',
                    'port' => 11211,
                    //'weight' => 60
                ],
        ],
    ]
]

```

or `Redis`

```
return [
    'components' => [
        'class' => 'yii\redis\Cache',
            'redis' => [
                'hostname' => '127.0.0.1',
                'port' => 6379,
                'database' => 0,
            ]
        ]
    ]
]

```

Add modules configuration:

```
return [
    'modules'    => [
        'kv'     => [
            'class' => 'stevenlei\keyvalue\Module',
        ],
    ],
];

```

migrations:

```
yii migrate --migrationPath=@stevenlei/keyvalue/migrations

```

You can then access KeyValue manager through the following URL:

```
http://localhost/kv/key-value/index

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Total

2

Last Release

2987d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/014076f96f00c27c30fd9283a18f315ae208963c9674606f01d79f87423375ad?d=identicon)[ShaneStevenLei](/maintainers/ShaneStevenLei)

---

Top Contributors

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

---

Tags

yii2extensionkeyvalue

### Embed Badge

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

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

###  Alternatives

[vyants/yii2-daemon

Extension provides functionality for simple daemons creation and control

7859.0k](/packages/vyants-yii2-daemon)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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