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

AbandonedArchivedLibrary

bavix/laravel-settings
======================

Keep user settings easy.

1.1.0(5y ago)4631MITPHPPHP ^7.2

Since Aug 1Pushed 1y ago2 watchersCompare

[ Source](https://github.com/bavix/laravel-settings)[ Packagist](https://packagist.org/packages/bavix/laravel-settings)[ Docs](https://github.com/bavix/laravel-settings)[ RSS](/packages/bavix-laravel-settings/feed)WikiDiscussions master Synced 2mo ago

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

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/8782552a943837d6e05f9577552e34a778055204081b4b09567651b7f81850fb/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f62617669782f6c61726176656c2d73657474696e67732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/bavix/laravel-settings/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/e98301f613c53741fe84726b5e10af041622d98050728777155f4c048bf3f128/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f62617669782f6c61726176656c2d73657474696e67732f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/bavix/laravel-settings/?branch=master)[![Build Status](https://camo.githubusercontent.com/b2d37bd8c234aa74a671f9630a654ba93369e2711536eb1572be200f47bf0894/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f62617669782f6c61726176656c2d73657474696e67732f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/bavix/laravel-settings/build-status/master)[![Code Intelligence Status](https://camo.githubusercontent.com/c70fe28911d86bee7b9e9327583590043cd0ae05f7dd7e792607809513dfd99a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f62617669782f6c61726176656c2d73657474696e67732f6261646765732f636f64652d696e74656c6c6967656e63652e7376673f623d6d6173746572)](https://scrutinizer-ci.com/code-intelligence)[![Mutation testing badge](https://camo.githubusercontent.com/382eb79b972afd0c9ede00d6a8b54e83bf67da5ab8ec004f7c018d84deb4d356/68747470733a2f2f62616467652e737472796b65722d6d757461746f722e696f2f6769746875622e636f6d2f62617669782f6c61726176656c2d73657474696e67732f6d6173746572)](https://packagist.org/packages/bavix/laravel-settings)

[![Package Rank](https://camo.githubusercontent.com/8cad24394e0f987353609e3157a798ff74224bb2b1028f15d40061353dfdea04/68747470733a2f2f7068707061636b616765732e6f72672f702f62617669782f6c61726176656c2d73657474696e67732f62616467652f72616e6b2e737667)](https://packagist.org/packages/bavix/laravel-settings)[![Latest Stable Version](https://camo.githubusercontent.com/c19dff1912b313e55ed0babe45a784114f0b88ee73c001cdc6d4e3d86292f6e5/68747470733a2f2f706f7365722e707567782e6f72672f62617669782f6c61726176656c2d73657474696e67732f762f737461626c65)](https://packagist.org/packages/bavix/laravel-settings)[![Latest Unstable Version](https://camo.githubusercontent.com/e8188d1025b3b5a30ef4c651617d29feeb2fe68e8bc881671062c0d0592b0556/68747470733a2f2f706f7365722e707567782e6f72672f62617669782f6c61726176656c2d73657474696e67732f762f756e737461626c65)](https://packagist.org/packages/bavix/laravel-settings)[![License](https://camo.githubusercontent.com/8d734f59599bce0505cd5aa872e780c9b127350f8d6923dac26513da1cc8ddbf/68747470733a2f2f706f7365722e707567782e6f72672f62617669782f6c61726176656c2d73657474696e67732f6c6963656e7365)](https://packagist.org/packages/bavix/laravel-settings)[![composer.lock](https://camo.githubusercontent.com/def2a6f9ffbe728afd0114470fa4fdb15f1ed03dc8d7e715972a420a21761197/68747470733a2f2f706f7365722e707567782e6f72672f62617669782f6c61726176656c2d73657474696e67732f636f6d706f7365726c6f636b)](https://packagist.org/packages/bavix/laravel-settings)

laravel-settings - Keep user settings easy.

- **Vendor**: bavix
- **Package**: laravel-settings
- **Version**: [![Latest Stable Version](https://camo.githubusercontent.com/c19dff1912b313e55ed0babe45a784114f0b88ee73c001cdc6d4e3d86292f6e5/68747470733a2f2f706f7365722e707567782e6f72672f62617669782f6c61726176656c2d73657474696e67732f762f737461626c65)](https://packagist.org/packages/bavix/laravel-settings)
- **PHP Version**: 7.2+
- **Laravel Version**: `5.5`, `5.6`, `5.7`, `5.8`, `6.x`, `7.x`, `8.x`
- **[Composer](https://getcomposer.org/):** `composer require bavix/laravel-settings`

### Usage

[](#usage)

Add the `HasSettings`, `HasSetSettings`, `HasGetSettings` trait and `Settingable` interface to model.

```
use Bavix\Settings\Traits\HasSettings;
use Bavix\Settings\Traits\HasSetSettings;
use Bavix\Settings\Traits\HasGetSettings;
use Bavix\Settings\Interfaces\Settingable;

class User extends Model implements Settingable
{
    use HasGetSettings, HasSetSettings, HasSettings;
}
```

Checking user settings.

```
$user = User::first();
$user->getSetting('notify'); // null
$user->getSettingBool('notify'); // null
$user->getSettingBool('notify', false); // bool(false)
```

Let's save the settings.

```
(bool)$user->setSettingBool('notify', false); // bool(true)
$user->getSettingBool('notify', false); // bool(false)
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.4% 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 ~132 days

Total

4

Last Release

2081d ago

PHP version history (2 changes)1.0.0PHP ^7.1

1.0.1PHP ^7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/266f28651b740a279e636ef42fadcc7d72941c7a4bf9a29c4fd62c72476f0c0e?d=identicon)[REZ1DENT3](/maintainers/REZ1DENT3)

---

Top Contributors

[![rez1dent3](https://avatars.githubusercontent.com/u/5111255?v=4)](https://github.com/rez1dent3 "rez1dent3 (27 commits)")[![mend-bolt-for-github[bot]](https://avatars.githubusercontent.com/in/16809?v=4)](https://github.com/mend-bolt-for-github[bot] "mend-bolt-for-github[bot] (1 commits)")

---

Tags

configlaravellaravel-settingspersistentphpsettingslaravelSettingsconfiglaravel5settingconfigureuser settingslaravel5-packagecfg

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[akaunting/laravel-setting

Persistent settings package for Laravel

495805.1k7](/packages/akaunting-laravel-setting)[imanghafoori/laravel-heyman

A package to help you write expressive defensive code in a functional manner

92537.1k5](/packages/imanghafoori-laravel-heyman)[zachleigh/laravel-property-bag

Easy Laravel user settings using a property bag

85340.3k](/packages/zachleigh-laravel-property-bag)[arcanedev/laravel-settings

This package allows you to persists configs/settings for Laravel projects.

74131.4k6](/packages/arcanedev-laravel-settings)[rennokki/eloquent-settings

Eloquent Settings allows you to bind key-value pairs to any Laravel Eloquent model. It supports even casting for boolean, float or integer types.

804.2k](/packages/rennokki-eloquent-settings)[selective/config

Config component, strictly typed

19185.8k3](/packages/selective-config)

PHPackages © 2026

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