PHPackages                             kagatan/user-options - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. kagatan/user-options

ActiveLibrary[File &amp; Storage](/categories/file-storage)

kagatan/user-options
====================

Laravel. Simple key-value storage for Users

v1.1.2(5y ago)127MITPHPPHP &gt;=5.5.0

Since Aug 2Pushed 5y ago1 watchersCompare

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

READMEChangelog (5)Dependencies (2)Versions (6)Used By (0)

key-value User option for Laravel
=================================

[](#key-value-user-option-for-laravel)

- Simple key-value storage for Users (Laravel)

Install
-------

[](#install)

`composer require kagatan/user-options`

Usage
-----

[](#usage)

```
use Kagatan\UserOption\UserOption;

$user_id = 777;
$key = 'test_key';
$value = 'test_value';

$data = [
  'test_key_a_1' => 'test_value_a_1',
  'test_key_a_2' => 'test_value_a_2',
  'test_key_b_1' => 'test_value_b_1',
  'test_key_b_2' => 'test_value_b_2'
];

// Set key => value for User
UserOption::set($user_id, $key, $value);

// Get value by key for User
$option = UserOption::get($user_id, $key);
dump($option);

// Remove by key for User
UserOption::remove($user_id, $key);

// Set collection [key => value] for User
UserOption::set($user_id, $data);

// Get all options for User
$options = UserOption::getAll($user_id);
dump($options);

// Get options by condition for User
$options = UserOption::getAll($user_id, 'test_key_a%');
dump($options);
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Total

5

Last Release

1953d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/27299810?v=4)[Maxim](/maintainers/kagatan)[@kagatan](https://github.com/kagatan)

---

Top Contributors

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

---

Tags

laravelSettingsoptionsstorageKey valuepersistent

### Embed Badge

![Health badge](/badges/kagatan-user-options/health.svg)

```
[![Health](https://phpackages.com/badges/kagatan-user-options/health.svg)](https://phpackages.com/packages/kagatan-user-options)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[unisharp/laravel-settings

Persistent settings manager for laravel, translations are supported.

107171.9k2](/packages/unisharp-laravel-settings)[spatie/laravel-health

Monitor the health of a Laravel application

87411.3M154](/packages/spatie-laravel-health)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8723.1M23](/packages/yajra-laravel-oci8)[api-platform/laravel

API Platform support for Laravel

59156.3k11](/packages/api-platform-laravel)[outerweb/image-library

Store and link files to your models

1113.8k3](/packages/outerweb-image-library)

PHPackages © 2026

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