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 2mo 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 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

1902d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0ea39941cc074e30a316cad0505af58e30adec765b943b34034c579aa9e19ac8?d=identicon)[kagatan](/maintainers/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

[unisharp/laravel-settings

Persistent settings manager for laravel, translations are supported.

107169.9k2](/packages/unisharp-laravel-settings)[zing/laravel-flysystem-obs

Flysystem Adapter for OBS

1211.2k](/packages/zing-laravel-flysystem-obs)[vormkracht10/flysystem-uploadcare

Flysystem driver for Uploadcare for Laravel.

1834.2k](/packages/vormkracht10-flysystem-uploadcare)

PHPackages © 2026

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