PHPackages                             vakata/kvstore - 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. vakata/kvstore

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

vakata/kvstore
==============

A simple key-value storage class

2.0.2(2y ago)16.5k↓74.4%3MITPHPPHP &gt;=8.0.0

Since Dec 4Pushed 2y ago1 watchersCompare

[ Source](https://github.com/vakata/kvstore)[ Packagist](https://packagist.org/packages/vakata/kvstore)[ Docs](https://github.com/vakata/kvstore)[ RSS](/packages/vakata-kvstore/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)DependenciesVersions (8)Used By (3)

kvstore
=======

[](#kvstore)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3d1f2be05f77ed3e20a16101607655e0fcfba16568ee265f5fe3f8213346e3f8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f76616b6174612f6b7673746f72652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vakata/kvstore)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

A simple key-value storage class. used for configurations and extended in vakata/session.

Install
-------

[](#install)

Via Composer

```
$ composer require vakata/kvstore
```

Usage
-----

[](#usage)

```
$config = new \vakata\kvstore\Storage([ 'sample' => [ 'data' => 1] ]);
$config->get('sample.data', null, '.'); // 1
$config->set('sample.data', 2, '.'); // 2
$config->get('sample.data', null, '.'); // 2
$config->del('sample.data', '.'); // 2
$config->get('sample.data', null, '.'); // null
$config->get('sample.data', 'default', '.'); // "default"
$config->set('new.data.to.add', 2, '.'); // 2
$config->get('new.data', null, '.'); // [ 'to' => [ 'add' => 2 ] ]
```

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [vakata](https://github.com/vakata)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity73

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

Recently: every ~709 days

Total

7

Last Release

846d ago

Major Versions

1.0.3 → 2.0.02023-02-13

PHP version history (2 changes)1.0.0PHP &gt;=5.4.0

2.0.0PHP &gt;=8.0.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/146052?v=4)[Ivan Bozhanov](/maintainers/vakata)[@vakata](https://github.com/vakata)

---

Top Contributors

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

---

Tags

vakataKVStore

### Embed Badge

![Health badge](/badges/vakata-kvstore/health.svg)

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

###  Alternatives

[vakata/asn1

An ASN1 encoder / decoder

1628.6k3](/packages/vakata-asn1)

PHPackages © 2026

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