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

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

okipa/laravel-settings-management
=================================

An easy way to get access to your app settings from anywhere.

1.0.4(7y ago)0673MITPHPPHP &gt;=7.0

Since May 16Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Okipa/laravel-settings-management)[ Packagist](https://packagist.org/packages/okipa/laravel-settings-management)[ Docs](https://github.com/Okipa/laravel-settings-management)[ RSS](/packages/okipa-laravel-settings-management/feed)WikiDiscussions master Synced yesterday

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

laravel-settings-management
===========================

[](#laravel-settings-management)

An easy way to get access to your app settings from anywhere.

[![Source Code](https://camo.githubusercontent.com/d5f4b90b093c2ba9928e30f59d71e12dea0ea0348d48327530e00240f6e047f3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d6f6b6970612f6c61726176656c2d2d73657474696e67732d2d6d616e6167656d656e742d626c75652e737667)](https://github.com/Okipa/laravel-settings-management)[![Latest Version](https://camo.githubusercontent.com/c1a85eba43ab7bd3167e7b4727dcb2a28e05c794148627730408355ce88e3f0d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6f6b6970612f6c61726176656c2d73657474696e67732d6d616e6167656d656e742e7376673f7374796c653d666c61742d737175617265)](https://github.com/Okipa/laravel-settings-management/releases)[![Total Downloads](https://camo.githubusercontent.com/dde2bc1d4a062b0c1f9386f8de2cab33b6f112d130cde4e4762b18894762e66a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f6b6970612f6c61726176656c2d73657474696e67732d6d616e6167656d656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/okipa/laravel-settings-management)[![License: MIT](https://camo.githubusercontent.com/08cef40a9105b6526ca22088bc514fbfdbc9aac1ddbf8d4e6c750e3a88a44dca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667)](https://opensource.org/licenses/MIT)[![Build Status](https://camo.githubusercontent.com/5c9f6e5b7e1707fd7ac7b31c69dee0d779a702825ef251edc2bf22ba502b45be/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4f6b6970612f6c61726176656c2d73657474696e67732d6d616e6167656d656e742f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Okipa/laravel-settings-management/build-status/master)[![Code Coverage](https://camo.githubusercontent.com/9f9ac296cf4ce9b3ecde7ecea686e07026b8bb451210b09bf9a754d214983769/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4f6b6970612f6c61726176656c2d73657474696e67732d6d616e6167656d656e742f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Okipa/laravel-settings-management/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/2bad2b8e6962bba8d6aeca284cfd832a0602ddc64bc441eefa44d924f48a2843/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4f6b6970612f6c61726176656c2d73657474696e67732d6d616e6167656d656e742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Okipa/laravel-settings-management/?branch=master)

**⚠️ This package has been abandonned ⚠️**
Do not hesitate to contact me if you want to make it evolve and to maintain it.

---

Before starting
---------------

[](#before-starting)

The settings management only uses one Model instance, which mean that using a database table to store your settings will read and update only one line.
Even if this package will work fine using database storage, using a [Laravel Model Json Storage](https://github.com/Okipa/laravel-model-json-storage) to do this can be a better option.

---

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

[](#installation)

- Install the package with composer :

```
composer require okipa/laravel-settings-management
```

- Laravel 5.5+ uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider. If you don't use auto-discovery or if you use a Laravel 5.4- version, add the package service provider in the `register()` method from your `app/Providers/AppServiceProvider.php` :

```
// laravel settings management
// https://github.com/Okipa/laravel-settings-management
$this->app->register(Okipa\LaravelSettingsManagement\SettingsManagementServiceProvider::class);
```

- Run the following command : `php artisan vendor:publish --tag=settingsManagement`.
    This will publish these files to your project (to customize according to your needs) :

    - `app/Settings.php` : The Settings model.
    - `config/settings.php` : the settings management configuration file.
    - `database/migration/2018_05_16_145709_create_settings_table.php` : the settings management migration (delete this file if you chose to use the [Laravel Model Json Storage](https://github.com/Okipa/laravel-model-json-storage)).
- Run the Laravel migration command : `php artisan migrate`
- You may want to customize the `config/settings.php` configuration file values :

    - `model` : set the namespace of the model used for your app settings management.

**Caution :**
Your model-settings-management migration should have each of its field set as `nullable()` or having a default value.
Without this configuration, a `PDOException` would be thrown because an empty instance of the settings model is stored in database when none does exist.

---

Usage
-----

[](#usage)

Use the `settings()` helper as a model instance to access to your settings data from anywhere in your app :

```
$email = settings()->email;
```

Update your settings data by using the `settings()` helper as well.

```
settings()->update(['email' => 'john@doe.com']);

// or

settings()->setAttribute('email', 'john@doe.com')->save();

// or

settings()->email = john@doe.com;
settings()->save();
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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

4

Last Release

2916d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

laravelmanagementokipapackagephpsettingsphplaravelSettingspackagemanagementokipa

### Embed Badge

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

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

###  Alternatives

[okipa/laravel-table

Generate tables from Eloquent models.

56752.8k](/packages/okipa-laravel-table)[tehwave/laravel-achievements

Simple, elegant Achievements the Laravel way

7012.8k](/packages/tehwave-laravel-achievements)[sajadsdi/laravel-setting-pro

Easy settings management for laravel framework

1315.9k](/packages/sajadsdi-laravel-setting-pro)[cybercog/laravel-paket

Composer personal web interface. Manage Laravel dependencies without switching to command line!

1753.3k](/packages/cybercog-laravel-paket)[okipa/laravel-form-components

Ready-to-use and customizable form components.

198.0k1](/packages/okipa-laravel-form-components)[francescomalatesta/laravel-amplitude

A Laravel package to work with Amplitude.

125.3k](/packages/francescomalatesta-laravel-amplitude)

PHPackages © 2026

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