PHPackages                             bgaze/laravel-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. [Database &amp; ORM](/categories/database)
4. /
5. bgaze/laravel-kvstore

ActiveLibrary[Database &amp; ORM](/categories/database)

bgaze/laravel-kvstore
=====================

A simple and easy to use key-value store for Laravel 5.5+

v1.1.0(6y ago)19181MITPHP

Since Sep 29Pushed 5y ago1 watchersCompare

[ Source](https://github.com/bgaze/laravel-kvstore)[ Packagist](https://packagist.org/packages/bgaze/laravel-kvstore)[ RSS](/packages/bgaze-laravel-kvstore/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

bgaze/laravel-kvstore
=====================

[](#bgazelaravel-kvstore)

A simple and easy to use key-value database store for Laravel 5.5+

All values are stored into database and managed using cache to avoid unecessary queries.

Casting is supported to manage values type.

Documentation
-------------

[](#documentation)

Full documentation is available at

Quick start
-----------

[](#quick-start)

Install the package using composer:

```
composer install bgaze/laravel-kvstore

```

Publish the required migration:

```
php artisan vendor:publish --tag=kvstore

```

Then create the table:

```
php artisan migrate

```

The `KvStore` facade offers static methods to manage the store content.

```
// Insert some values:
KvStore::set('value1', 'a string');
KvStore::set('value2', '11111', 'integer');
KvStore::set('value3', ['test' => true], 'array');

// Update value keeping cast type:
KvStore::set('value3', ['test' => false]);

// Update value changing cast type:
KvStore::set('value3', 22222, 'integer');

// Update value removing cast type.
KvStore::set('value3', 22222, false);

// Get value by key:
$value1 = KvStore::get('value1');

// Get value by key, passing a default value:
$value2 = KvStore::get('value2', 'default value');

// Remove an entry by key:
KvStore::remove('value1');

// Remove multiple entries by key:
KvStore::remove(['value1', 'value2']);
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 90% 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 ~1 days

Total

2

Last Release

2465d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4f4a5f965ee3485d7f2c78450a371d363027a7f10935d6559869874a584d5402?d=identicon)[bgaze](/maintainers/bgaze)

---

Top Contributors

[![bgaze](https://avatars.githubusercontent.com/u/985214?v=4)](https://github.com/bgaze "bgaze (9 commits)")[![JorickL](https://avatars.githubusercontent.com/u/35256778?v=4)](https://github.com/JorickL "JorickL (1 commits)")

### Embed Badge

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

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

###  Alternatives

[backpack/crud

Quickly build admin interfaces using Laravel, Bootstrap and JavaScript.

3.4k3.7M222](/packages/backpack-crud)[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11223.5M33](/packages/anourvalar-eloquent-serialize)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21318.6k3](/packages/ecotone-laravel)[mozex/laravel-scout-bulk-actions

Import, flush, and queue-import all your Laravel Scout searchable models at once. Auto-discovers models, runs in bulk, tracks progress.

1539.3k](/packages/mozex-laravel-scout-bulk-actions)[ramadan/easy-model

A Laravel package for enjoyably managing database queries.

111.6k](/packages/ramadan-easy-model)

PHPackages © 2026

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