PHPackages                             stobys/laravel-settings - 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. stobys/laravel-settings

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

stobys/laravel-settings
=======================

Laravel Settings

v1.1.2(4y ago)060MITPHPPHP &gt;=7.2CI failing

Since Oct 27Pushed 1y ago1 watchersCompare

[ Source](https://github.com/stobys/laravel-settings)[ Packagist](https://packagist.org/packages/stobys/laravel-settings)[ Docs](https://github.com/stobys/laravel-sortable)[ RSS](/packages/stobys-laravel-settings/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (7)Dependencies (3)Versions (8)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/abf56da7ef36ed21b00bf1d58d5476987dd022815541f251b124f3a8b2da815f/687474703a2f2f706f7365722e707567782e6f72672f73746f6279732f6c61726176656c2d73657474696e67732f763f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/stobys/laravel-settings)[![Total Downloads](https://camo.githubusercontent.com/747639db9c9fe5c06c14d9f68c529d98bd681727c84d02fe8cd3f9fbf5fbf3dd/68747470733a2f2f706f7365722e707567782e6f72672f73746f6279732f6c61726176656c2d73657474696e67732f646f776e6c6f6164733f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/stobys/laravel-settings)[![License](https://camo.githubusercontent.com/5b353d3fb2e060eec3ff2bacf5ffb1fab46531375055c5b1280894bd73f331b1/68747470733a2f2f706f7365722e707567782e6f72672f73746f6279732f6c61726176656c2d73657474696e67732f6c6963656e73653f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/stobys/laravel-settings)

Laravel-Settings
================

[](#laravel-settings)

Laravel Settings (Database + Cache) - basically clone of

How to Install
--------------

[](#how-to-install)

Require this package with composer ([Packagist](https://packagist.org/packages/stobys/laravel-settings)) using the following command:

```
composer require stobys/laravel-settings

```

or modify your `composer.json`:

```
   "require": {
      "stobys/laravel-settings": "1.*"
   }

```

then run `composer update`:

After updating composer, ServiceProvider and Facade class will be registered automatically, no need to register them manually.

Publish the config and migration files now (Attention: This command will not work if you don't follow previous instruction):

```
$ php artisan vendor:publish --provider="SylveK\LaravelSettings\SettingsServiceProvider" --force

```

Change `config/settings.php` according to your needs.

Create the `settings` table.

```
$ php artisan migrate

```

How to Use it?
--------------

[](#how-to-use-it)

Set a value

```
Settings::set('key', 'value');

```

Get a value

```
$value = Settings::get('key');

```

Get a value with Default Value.

```
$value = Settings::get('key', 'Default Value');

```

> Note: If key is not found (null) in cache or settings table, it will return default value

Get a value via an helper

```
$value = settings('key');
$value = settings('key', 'default value');

```

Forget a value

```
Settings::forget('key');

```

Forget all values

```
Settings::flush();

```

Fallback to Laravel Config
--------------------------

[](#fallback-to-laravel-config)

How to activate?

```
// Change your config/settings.php
'fallback'   => true

```

Example

```
/*
 * If the value with key => mail.host is not found in cache or DB of Larave Settings
 * it will return same value as config::get('mail.host');
 */
Settings::get('mail.host');

```

> Note: It will work if default value in laravel setting is not set

### License

[](#license)

The Laravel Settings is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Recently: every ~87 days

Total

7

Last Release

1678d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4be8a510a0cea4e428199c41d707670449959e810ede323a07ba551e3dc13782?d=identicon)[stobys](/maintainers/stobys)

---

Top Contributors

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

---

Tags

laravelSettings

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/stobys-laravel-settings/health.svg)

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

###  Alternatives

[edvinaskrucas/settings

Persistent settings package for Laravel framework.

22483.1k1](/packages/edvinaskrucas-settings)

PHPackages © 2026

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