PHPackages                             weboap/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. [Framework](/categories/framework)
4. /
5. weboap/option

AbandonedArchivedLibrary[Framework](/categories/framework)

weboap/option
=============

Save and retreive config from db for laravel 5 / Access Config as Array

v2.0.4(7y ago)5271BSD-2-ClausePHPPHP &gt;=5.4.0

Since Feb 7Pushed 7y ago1 watchersCompare

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

READMEChangelog (6)Dependencies (4)Versions (10)Used By (0)

\#Option
========

[](#option)

Save and retreive config from db for laravel / Access Config as Array

Laravel 4 users use "weboap/option": "v1.0.5"

### Installation

[](#installation)

The recommended way to install Winput is through composer.

Step 1
------

[](#step-1)

```
php composer require weboap/option
```

Step 2 (optional)
-----------------

[](#step-2-optional)

Add config/app.php if you are using laravel &lt;5.5

```
'Weboap\Option\OptionServiceProvider'
```

Step 3
------

[](#step-3)

Migrate the Option Table Run

```
php artisan vendor:publish
php artisan migrate
```

you can check app/option.php to costumize Option config file.

### Usage

[](#usage)

Note : the keys are to be set group.key (eg: 'gallery.path', 'cache.timeout') that way the options are grouped per categories keys that don't have a group the package will prepend 'global.' to eg: seting a key : 'business' will be retreived like 'global.business'

```
//set one key
Option::set('group.key', 'value');

// or set an array of key, values
Option::set(['key0'=> 'value', 'group.key'=>'value', 'someothergroup.key1'=>'value1', .....]);

Option::get('group.key');
Option::get('global.key');

Option::group('prefix'); // will return an array of options prefixed with group

Option::forget('group.key');

Option::has('group.key');

//retreive all keys, values at once
Option::all();

or

you can access config as array like

$config = App::make('option');

$config['mygroup.foo'] = 'bar';

echo $config['mygroup.foo'];

unset($config['mygroup.foo']);

```

Enjoy!

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 95% 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 ~228 days

Recently: every ~343 days

Total

9

Last Release

2651d ago

Major Versions

v1.0.5 → v2.0.02015-05-08

PHP version history (2 changes)1.0.1PHP &gt;=5.3.0

v2.0.0PHP &gt;=5.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/80df2d1cdc513c528f76de1a36a8088b04d84dd22395dd1db129f9e23f62d5c0?d=identicon)[weboap](/maintainers/weboap)

---

Top Contributors

[![weboAp](https://avatars.githubusercontent.com/u/808861?v=4)](https://github.com/weboAp "weboAp (38 commits)")[![lokielse](https://avatars.githubusercontent.com/u/1573211?v=4)](https://github.com/lokielse "lokielse (1 commits)")[![TomasKit](https://avatars.githubusercontent.com/u/13846988?v=4)](https://github.com/TomasKit "TomasKit (1 commits)")

---

Tags

frameworkconfigurationoptionlaravel 5

### Embed Badge

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

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

###  Alternatives

[pestphp/pest-plugin-stressless

Stressless plugin for Pest

67792.6k16](/packages/pestphp-pest-plugin-stressless)[haruncpi/laravel-option-framework

Manage your laravel application's dynamic settings in one place with various supported input types

2091.0k](/packages/haruncpi-laravel-option-framework)[davidepastore/slim-config

A slim middleware to read configuration from different files based on hassankhan/config

338.9k1](/packages/davidepastore-slim-config)

PHPackages © 2026

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