PHPackages                             forwardcode/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. forwardcode/laravel-options

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

forwardcode/laravel-options
===========================

Fetch/Store Key-Value Pair in Laravel

08PHP

Since Jul 8Pushed 3y ago1 watchersCompare

[ Source](https://github.com/forwardcode/laravel-options)[ Packagist](https://packagist.org/packages/forwardcode/laravel-options)[ RSS](/packages/forwardcode-laravel-options/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#laravel-options)

Global key-value store in the database

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

[](#installation)

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

```
composer require forwardcode/laravel-options
```

### Publish, migrate

[](#publish-migrate)

By running `php artisan vendor:publish --provider="Forwardcode\LaravelOptionsServiceProvider"` in your project all files for this package will be published. For this package, it's only a migration. Run `php artisan migrate` to migrate the table. There will now be an `options` table in your database.

Usage
-----

[](#usage)

With the `get_option()` helper, we can get options, and with `set_option()` helper, we can set an option value.

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

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

// Set option
set_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');
```

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

[](#contributing)

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

About Forwardcode Techstudio
----------------------------

[](#about-forwardcode-techstudio)

Forwardcode Techstudio is a service based offshore development team focused on building secure, robust &amp; scalable softwares.

License
-------

[](#license)

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

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/88910ef2a07b913d4b110b66ebccf2fcfbea0e5c534f80df9f14ca00f6b09e29?d=identicon)[forwardcode](/maintainers/forwardcode)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[botman/botman

Create messaging bots in PHP with ease.

6.2k1.5M97](/packages/botman-botman)[denngarr/seat-fitting

Module to check fittings per character

1433.3k2](/packages/denngarr-seat-fitting)[thedmsgroup/mautic-enhancer-bundle

Various contact enhancer integrations for Mautic.

342.8k](/packages/thedmsgroup-mautic-enhancer-bundle)[xi/breadcrumbs-bundle

Xi breadcrumbs bundle for Symfony2 that utilises routes as a tree to build the breadcrumbs in order to not pollute the controller actions with repetitive breadcrumbs code.

113.2k](/packages/xi-breadcrumbs-bundle)

PHPackages © 2026

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