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

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

arafatkn/laravel-settings
=========================

A laravel package for managing project settings.

v0.2.0(4y ago)1136MITPHP

Since Oct 3Pushed 2y ago1 watchersCompare

[ Source](https://github.com/arafatkn/laravel-settings)[ Packagist](https://packagist.org/packages/arafatkn/laravel-settings)[ RSS](/packages/arafatkn-laravel-settings/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (4)Used By (0)

[![Laravel Settings](https://camo.githubusercontent.com/5d07e82b51e30cd7af32a045737487977abe377fb92cb73e4f8d12021a83fcf6/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c25323053657474696e67732e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d6172616661746b6e2532466c61726176656c2d73657474696e6773267061747465726e3d617263686974656374267374796c653d7374796c655f31266465736372697074696f6e3d412b6c61726176656c2b7061636b6167652b666f722b6d616e6167696e672b70726f6a6563742b73657474696e67732e266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d61646a7573746d656e7473)](https://camo.githubusercontent.com/5d07e82b51e30cd7af32a045737487977abe377fb92cb73e4f8d12021a83fcf6/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c25323053657474696e67732e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d6172616661746b6e2532466c61726176656c2d73657474696e6773267061747465726e3d617263686974656374267374796c653d7374796c655f31266465736372697074696f6e3d412b6c61726176656c2b7061636b6167652b666f722b6d616e6167696e672b70726f6a6563742b73657474696e67732e266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d61646a7573746d656e7473)

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

[](#laravel-settings)

[![Latest Stable Version](https://camo.githubusercontent.com/8d1d1a799c66c50c6c162c1f71f244378a83c9c5b3baaf1c666be361460b7261/68747470733a2f2f706f7365722e707567782e6f72672f6172616661746b6e2f6c61726176656c2d73657474696e67732f76)](//packagist.org/packages/arafatkn/laravel-settings)[![License](https://camo.githubusercontent.com/63c2b0bd31a456b15665eb4caf698be59e3a357e5ceee3bb1b731c85900c0b67/68747470733a2f2f706f7365722e707567782e6f72672f6172616661746b6e2f6c61726176656c2d73657474696e67732f6c6963656e7365)](//packagist.org/packages/arafatkn/laravel-settings)[![Total Downloads](https://camo.githubusercontent.com/ec4c33093e2124ecc7b30853148b457d15ac8ab8621d29044957e0a5b346e651/68747470733a2f2f706f7365722e707567782e6f72672f6172616661746b6e2f6c61726176656c2d73657474696e67732f646f776e6c6f616473)](//packagist.org/packages/arafatkn/laravel-settings)

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 arafatkn/laravel-settings
```

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.

```
Arafatkn\LaravelSettings\SettingServiceProvider::class,
```

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

```
'Setting' => \Arafatkn\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="Arafatkn\LaravelSettings\SettingServiceProvider"
```

Usage
-----

[](#usage)

```
use Arafatkn\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 (release in v0.2.0).
- File/Redis Cache Support.
- Multiple driver support. Such as- file, redis etc.

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

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

Total

2

Last Release

1675d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9e90f2bf40704413c963340fe5500aff02fe57b99faae6b1c0a984ba83e759a1?d=identicon)[arafatkn](/maintainers/arafatkn)

---

Top Contributors

[![arafatkn](https://avatars.githubusercontent.com/u/80309866?v=4)](https://github.com/arafatkn "arafatkn (15 commits)")

---

Tags

laravellaravel-packagelaravelsettingsSettingssettinglaravel-settings

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  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)
