PHPackages                             miladev/lara-setting - 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. miladev/lara-setting

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

miladev/lara-setting
====================

A laravel package for managing project settings.

1.0(2y ago)128MITPHPPHP &gt;=5.4.0CI failing

Since Aug 13Pushed 5mo ago2 watchersCompare

[ Source](https://github.com/miladev95/lara-setting)[ Packagist](https://packagist.org/packages/miladev/lara-setting)[ Docs](https://github.com/miladev95/lara-setting)[ RSS](/packages/miladev-lara-setting/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

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

[](#laravel-settings)

[![Latest Stable Version](https://camo.githubusercontent.com/b9e7c69bf481137276c80bbd0ada12ed506d74c8fbc8220811406c84e276bce5/68747470733a2f2f706f7365722e707567782e6f72672f6d696c616465762f6c6172612d73657474696e672f76)](//packagist.org/packages/miladev/lara-setting)[![License](https://camo.githubusercontent.com/6420c3d7b8dc832f113a118b44fa2fddd423283a3e71f01650f1dea610fbe283/68747470733a2f2f706f7365722e707567782e6f72672f6d696c616465762f6c6172612d73657474696e672f6c6963656e7365)](//packagist.org/packages/miladev/lara-setting)[![Total Downloads](https://camo.githubusercontent.com/aad0de18eff9cdeaaaadd03f2d93851c9e70f3a27fde0c875b7fa37acb58a850/68747470733a2f2f706f7365722e707567782e6f72672f6d696c616465762f6c6172612d73657474696e672f646f776e6c6f616473)](//packagist.org/packages/miladev/lara-setting)

A laravel package for managing project settings.

---

We always need to use a settings system in our application. This package will help you to create the system easily. The package will create a table in database named `settings` with key, value and autoload column. You can specify which column should be loaded in boot time by setting `autoload` column to true.

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

[](#installation)

You can install the package via composer:

```
composer require miladev/lara-setting
```

If you are using Laravel Package Auto-Discovery, you don't need you to manually add the ServiceProvider.

#### Without auto-discovery:

[](#without-auto-discovery)

If you don't use auto-discovery, add the below ServiceProvider to the `$providers` array in `config/app.php` file.

```
Miladev\LaravelSettings\SettingServiceProvider::class,
```

Then add the `Setting` facade in `$aliases` array in `config/app.php` file.

```
'Setting' => \Miladev\LaravelSettings\Facades\Setting::class,
```

Then you can run migration command to create database table.

```
php artisan migrate
```

You can also publish the migration file and modify as you needs.

```
php artisan vendor:publish --provider="Miladev\LaravelSettings\SettingServiceProvider"
```

Usage
-----

[](#usage)

```
use Miladev\LaravelSettings\Facades\Setting;

Setting::set('setting_key', 'setting_value', $autoload); // create or update
// Here, $autoload = true if you want to indicate that this should be loaded by default.
Setting::has('setting_key'); // check whether the key exists or not
Setting::get('setting_key', 'default_value'); // get the value
Setting::forget('setting_key'); // remove from the settings table
Setting::clean(); // remove all rows from the settings table
Setting::all(); // get all settings
```

Roadmap
-------

[](#roadmap)

- Runtime result cache to reduce duplicate query.
- Runtime in-memory caching to avoid duplicate queries
- File and Redis cache drivers
- Multiple storage drivers (database, file, Redis, custom)
- Typed values and automatic serialization/deserialization (arrays, JSON)
- Encryption support for sensitive values
- Validation rules for keys and values
- Per-setting expiration / TTL support
- Import/export (JSON/CSV) of settings
- Artisan commands for managing settings (list, set, forget, export)
- Blade directives and helper functions for easy retrieval
- Events and hooks on create/update/delete

If you want to contribute, open a pull request by following Laravel contribution guide.

License
-------

[](#license)

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

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance50

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity38

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1001d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/804b53db0aff0c136bb3b1ead2f1d660ef00e4ce1650aa49e6edf0fc2338921c?d=identicon)[miladev95](/maintainers/miladev95)

---

Top Contributors

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

---

Tags

Settingssettinglaravel-settings

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/miladev-lara-setting/health.svg)

```
[![Health](https://phpackages.com/badges/miladev-lara-setting/health.svg)](https://phpackages.com/packages/miladev-lara-setting)
```

###  Alternatives

[chillerlan/php-settings-container

A container class for immutable settings objects. Not a DI container.

3427.3M21](/packages/chillerlan-php-settings-container)[lexxpavlov/settingsbundle

Symfony2/3/4 Settings bundle provides flexible settings (Boolean, Integer, Float, String, Text, Html), easily configurable with Sonata Admin

104.5k](/packages/lexxpavlov-settingsbundle)

PHPackages © 2026

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