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

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

vendocrat/laravel-settings
==========================

Persistent, application-wide settings for Laravel 5.

v0.1.1(10y ago)22.0k1MITPHPPHP &gt;=5.5.9

Since Aug 29Pushed 10y ago1 watchersCompare

[ Source](https://github.com/alexanderpoellmann/laravel-settings)[ Packagist](https://packagist.org/packages/vendocrat/laravel-settings)[ Docs](https://github.com/AlexanderPoellmann/laravel-settings)[ RSS](/packages/vendocrat-laravel-settings/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (6)Dependencies (5)Versions (7)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/dcac3349c8518192c394f9caccbbbe1892859eefb6379ec9ab7f719f4257a7c1/68747470733a2f2f706f7365722e707567782e6f72672f76656e646f637261742f6c61726176656c2d73657474696e67732f762f737461626c65)](https://packagist.org/packages/vendocrat/laravel-settings)[![Total Downloads](https://camo.githubusercontent.com/ea4557fe7e608dc401a9960503e9e0ff39b0114e5e33721de6cec0e29874ae09/68747470733a2f2f706f7365722e707567782e6f72672f76656e646f637261742f6c61726176656c2d73657474696e67732f646f776e6c6f616473)](https://packagist.org/packages/vendocrat/laravel-settings)[![License](https://camo.githubusercontent.com/b28e4c7271c54945e8ea944057e70b557132f508eefa8143ac9f07786a08965e/68747470733a2f2f706f7365722e707567782e6f72672f76656e646f637261742f6c61726176656c2d73657474696e67732f6c6963656e7365)](https://packagist.org/packages/vendocrat/laravel-settings)

Laravel Settings
================

[](#laravel-settings)

Persistent, application-wide settings for Laravel 5.

**Attention:** This package is a work in progress, please use with care and be sure to report any issues!

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

[](#installation)

Require the package from your `composer.json` file

```
"require": {
	"vendocrat/laravel-settings": "dev-master"
}
```

and run `$ composer update` or both in one with `$ composer require vendocrat/laravel-settings`.

Next register the service provider and (optional) facade to your `config/app.php` file

```
'providers' => [
    // Illuminate Providers ...
    // App Providers ...
    vendocrat\Settings\SettingsServiceProvider::class
];
```

```
'providers' => [
	// Illuminate Facades ...
    'Setting' => vendocrat\Settings\Facades\Setting::class
];
```

Configuration
-------------

[](#configuration)

Laravel Settings includes an optional config file. Get started buy publishing it:

```
$ php artisan vendor:publish --provider="vendocrat\Settings\SettingsServiceProvider" --tag="config"
```

This will create a `config/settings.php` file where you can set for example which driver you want to use (JSON file, database, ...).

Migration
---------

[](#migration)

Note: You'll only need to complete this step when using the database driver.

If you want to store your settings in your database, you'll have to set `'driver'` in your `config/settings.php` file to `'database'` and publish the migration like so:

```
$ php artisan vendor:publish --provider="vendocrat\Settings\SettingsServiceProvider" --tag="migrations"
```

Afterwards you'll have to run the artisan migrate command:

```
$ php artisan migrate
```

Usage
-----

[](#usage)

##### Get all settings

[](#get-all-settings)

```
$settings = \Setting::all();
```

##### Check if a setting exists

[](#check-if-a-setting-exists)

```
\Setting::has($key);
```

##### Get a setting

[](#get-a-setting)

```
$setting = \Setting::get($key);
```

##### Add/update a setting

[](#addupdate-a-setting)

```
\Setting::set($key, $value);
```

##### Delete a setting

[](#delete-a-setting)

```
\Setting::forget($key);
```

##### Delete all settings

[](#delete-all-settings)

```
\Setting::flush();
```

##### Save your updates (set, forget, flush)

[](#save-your-updates-set-forget-flush)

```
\Setting::save();
```

Example
-------

[](#example)

The following example would store the setting `'bar'` with the key `'foo'`, then update it to `'bars'`, save it and then die &amp; dump all current settings, which is only one unique `'foo'` key-value pair.

```
\Setting::set('foo', 'bar');
\Setting::set('foo', 'bars');

\Setting::save();

dd(\Setting::all());
```

Results in

```
array [
  "foo" => "bars"
]
```

My Edits
--------

[](#my-edits)

- restructured folders &amp; files
- uses Eloquent models for database driver with soft deleting
- add interface contract
- removed middleware

#### To-Dos

[](#to-dos)

- add Redis support
- add option to group settings (e.g. config/user/...)
- add logic to automatically render input forms in the frontend for settings (like a simple App Settings view or so)

License
-------

[](#license)

Licensed under [MIT license](http://opensource.org/licenses/MIT).

Author
------

[](#author)

**Handcrafted with love by [Alexander Manfred Poellmann](http://twitter.com/AMPoellmann) for [vendocrat](https://vendocr.at) in Vienna &amp; Rome.**

Based on [Laravel Settings](https://github.com/anlutro/laravel-settings) by [Andreas Lutro](http://www.lutro.me).

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

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

Total

6

Last Release

3956d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

laravelSettingsoptions

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M203](/packages/laravel-ai)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)[illuminate/queue

The Illuminate Queue package.

21332.6M1.6k](/packages/illuminate-queue)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45444.2k1](/packages/pressbooks-pressbooks)[api-platform/laravel

API Platform support for Laravel

58171.8k14](/packages/api-platform-laravel)

PHPackages © 2026

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