PHPackages                             riipandi/laravel-opsi - 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. riipandi/laravel-opsi

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

riipandi/laravel-opsi
=====================

Put your Laravel application settings in database.

v1.1(6y ago)452Apache-2.0PHPPHP &gt;=7.2.1

Since Feb 18Pushed 6y agoCompare

[ Source](https://github.com/riipandi/laravel-opsi)[ Packagist](https://packagist.org/packages/riipandi/laravel-opsi)[ RSS](/packages/riipandi-laravel-opsi/feed)WikiDiscussions master Synced yesterday

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

Laravel Opsi
============

[](#laravel-opsi)

Put your Laravel application settings in database

Quick Start
-----------

[](#quick-start)

To get started with laravel-options, use Composer to add the package to your project's dependencies:

```
composer require appstract/laravel-options
```

### Publish, migrate

[](#publish-migrate)

By running `php artisan vendor:publish --provider="Riipandi\LaravelOpsi\OptionsServiceProvider"` in your project all files for this package will be published. For this package, it's only has a migration. 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');

// Get option, with a default fallback value if the key doesn't exist
option('someKey', 'Some default value if the key is not found');

// 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 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) :)

License
-------

[](#license)

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

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

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

Total

2

Last Release

2275d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/921834?v=4)[Aris Ripandi](/maintainers/riipandi)[@riipandi](https://github.com/riipandi)

---

Top Contributors

[![riipandi](https://avatars.githubusercontent.com/u/921834?v=4)](https://github.com/riipandi "riipandi (6 commits)")

---

Tags

laravellaravel-librarylaravel-optionslaravel-packagelaravelconfigurationSettingsoptions

### Embed Badge

![Health badge](/badges/riipandi-laravel-opsi/health.svg)

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

###  Alternatives

[cybercog/laravel-love

Make Laravel Eloquent models reactable with any type of emotions in a minutes!

1.2k302.7k1](/packages/cybercog-laravel-love)[cviebrock/eloquent-taggable

Easy ability to tag your Eloquent models in Laravel.

567694.8k3](/packages/cviebrock-eloquent-taggable)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2121.2M13](/packages/reedware-laravel-relation-joins)[outerweb/settings

Application wide settings stored in your database

4899.2k5](/packages/outerweb-settings)[illuminatech/config

Provides support for Laravel application runtime configuration managed in persistent storage

14921.0k1](/packages/illuminatech-config)

PHPackages © 2026

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