PHPackages                             rogerarruda/laravel-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. rogerarruda/laravel-options

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

rogerarruda/laravel-options
===========================

Global options loaded from the database

1.2.1(7y ago)0591MITPHPPHP &gt;=7.1

Since Mar 17Pushed 7y ago1 watchersCompare

[ Source](https://github.com/rogerarruda/laravel-options)[ Packagist](https://packagist.org/packages/rogerarruda/laravel-options)[ Docs](https://github.com/rogerarruda/laravel-options)[ RSS](/packages/rogerarruda-laravel-options/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (14)Used By (0)

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

[](#laravel-options)

[![Latest Version on Packagist](https://camo.githubusercontent.com/443b4c6208103878ad299310be9dd5deb0f55a25ebbf0ce27dd0e6956866e39c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726f6765726172727564612f6c61726176656c2d6f7074696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rogerarruda/laravel-options)[![Total Downloads](https://camo.githubusercontent.com/1e40787f025ae0a838905f8c0d7489ad29a05331d690670755cab249ff4b91fd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726f6765726172727564612f6c61726176656c2d6f7074696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rogerarruda/laravel-options)[![Software License](https://camo.githubusercontent.com/54157fc042c71fa81bf0640d6b5dff9199287ead111d8d6c1cb47e7dbf52f983/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f726f6765726172727564612f6c61726176656c2d6f7074696f6e732e7376673f7374796c653d666c6174)](LICENSE.md)[![Compatible with Laravel](https://camo.githubusercontent.com/7750315afb3825cd36a0383655c5e9f06fbe7107be503045f5142112ebedcfa2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d253545352e372e2a2d627269676874677265656e2e737667)](https://laravel.com)

Global key-value store in the database

Original Copyright(c) [AppStract](https://github.com/appstract/laravel-options)

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

[](#installation)

You can install the package via composer:

```
composer require rogerarruda/laravel-options
```

### Migrate

[](#migrate)

Run `php artisan migrate` to migrate the table. There will now be an `options` table in your database.

Usage
-----

[](#usage)

With the `option()` helper, we can get and set options:

```
// Get option
option('someKey');

// Set option
option(['someKey' => 'someValue']);

// Check the option exists
option_exists('someKey');
```

If you want to check if an option exists, you can use the facade:

```
use RogerArruda\LaravelOptions\Models\Option;

$check = Option::exists('someKey');
```

Setting a value to a key that already exists will [overwrite the value](https://github.com/appstract/laravel-options/releases/tag/0.2.0).

### Console

[](#console)

It is also possible to set options within the console:

```
php artisan option:set {someKey} {someValue}
```

Testing
-------

[](#testing)

```
$ composer test
```

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

[](#contributing)

Contributions are welcome, [thanks to y'all](https://github.com/appstract/laravel-options/graphs/contributors) :)

About Appstract
---------------

[](#about-appstract)

Appstract is a small team from The Netherlands. We create (open source) tools for webdevelopment and write about related subjects on [Medium](https://medium.com/appstract). You can [follow us on Twitter](https://twitter.com/teamappstract), [buy us a beer](https://www.paypal.me/teamappstract/10) or [support us on Patreon](https://www.patreon.com/appstract).

License
-------

[](#license)

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

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 57.6% 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 ~62 days

Recently: every ~117 days

Total

12

Last Release

2656d ago

Major Versions

0.4.0 → 1.0.02018-01-22

PHP version history (2 changes)0.1.0PHP &gt;=5.6

1.2.0PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/cce8c70ab6cc9014ade619617876f0b61c8740182095c474309ebadc89e76c43?d=identicon)[rogerarruda](/maintainers/rogerarruda)

---

Top Contributors

[![gizburdt](https://avatars.githubusercontent.com/u/1470623?v=4)](https://github.com/gizburdt "gizburdt (19 commits)")[![rogerarruda](https://avatars.githubusercontent.com/u/6174373?v=4)](https://github.com/rogerarruda "rogerarruda (3 commits)")[![ovanschie](https://avatars.githubusercontent.com/u/3015449?v=4)](https://github.com/ovanschie "ovanschie (2 commits)")[![uniconstructor](https://avatars.githubusercontent.com/u/1384545?v=4)](https://github.com/uniconstructor "uniconstructor (2 commits)")[![akoepcke](https://avatars.githubusercontent.com/u/5311185?v=4)](https://github.com/akoepcke "akoepcke (1 commits)")[![svenluijten](https://avatars.githubusercontent.com/u/11269635?v=4)](https://github.com/svenluijten "svenluijten (1 commits)")[![teuunn](https://avatars.githubusercontent.com/u/17406280?v=4)](https://github.com/teuunn "teuunn (1 commits)")[![meSingh](https://avatars.githubusercontent.com/u/2369397?v=4)](https://github.com/meSingh "meSingh (1 commits)")[![armandsar](https://avatars.githubusercontent.com/u/3834314?v=4)](https://github.com/armandsar "armandsar (1 commits)")[![crivion](https://avatars.githubusercontent.com/u/15253384?v=4)](https://github.com/crivion "crivion (1 commits)")[![m1guelpf](https://avatars.githubusercontent.com/u/23558090?v=4)](https://github.com/m1guelpf "m1guelpf (1 commits)")

---

Tags

laravellaravel-options

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rogerarruda-laravel-options/health.svg)

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

###  Alternatives

[stephenjude/filament-blog

Filament Blog Builder

20317.8k](/packages/stephenjude-filament-blog)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[datomatic/nova-detached-actions

A Laravel Nova tool to allow for placing actions in the Nova toolbar detached from the checkbox selection mechanism.

11229.2k](/packages/datomatic-nova-detached-actions)

PHPackages © 2026

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