PHPackages                             hisman/option - 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. hisman/option

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

hisman/option
=============

Persistent key value options for Laravel

1.1.0(7y ago)050MITPHP

Since Nov 1Pushed 7y ago1 watchersCompare

[ Source](https://github.com/hisman/laravel-option)[ Packagist](https://packagist.org/packages/hisman/option)[ RSS](/packages/hisman-option/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Laravel Options
===============

[](#laravel-options)

Persistent key value options for Laravel.

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

[](#installation)

Install the package via composer:

```
composer require hisman/option

```

### Provider

[](#provider)

If you're using Laravel &lt; 5.5, you'll need to add the service provider to `config/app.php` file:

```
'providers' => [
    ...

    Hisman\Option\OptionServiceProvider::class,

    ...
]
```

### Alias

[](#alias)

Add the alias to `config/app.php` file:

```
'aliases' => [
    ...

    'Option' => Hisman\Option\Facade\Option::class,

    ...
]
```

### Migration

[](#migration)

You must run the migration `php artisan migrate` before using this package. It creates `options` table in your database that will be used for storing the options.

Usage
-----

[](#usage)

Using Facade

```
// Set option
Option::set('name', 'value');
Option::set('name', [1, 2, 3]);

// Get option
$option = Option::get('name');

// Get option with default value
$option = Option::get('name', 'default value');
```

Using helper function

```
// Set option
option()->set('name', 'value');
option()->set('name', [1, 2, 3]);

// Get option
$option = option('name');
$option = option()->get('name');

// Get option with default value
$option = option('name', 'default value');
$option = option()->get('name', 'default value');
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

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

Total

2

Last Release

2559d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1266907?v=4)[Hisman](/maintainers/hisman)[@hisman](https://github.com/hisman)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hisman-option/health.svg)

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

PHPackages © 2026

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