PHPackages                             yazan/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. [Database &amp; ORM](/categories/database)
4. /
5. yazan/laravel-settings

ActiveLibrary[Database &amp; ORM](/categories/database)

yazan/laravel-settings
======================

Laravel Settings to create your website and model settings in an easy way

v1.0(4y ago)584.6k↓50%2MITPHP

Since Feb 28Pushed 2y ago1 watchersCompare

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

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

[![GitHub](https://camo.githubusercontent.com/73d49a90143604aaae18e184928a48b2baf2ba64e5170c983875956559ede723/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f79617a616e2d616c6e75676e7567682f6c61726176656c2d73657474696e67733f636f6c6f723d626c7565)](https://camo.githubusercontent.com/73d49a90143604aaae18e184928a48b2baf2ba64e5170c983875956559ede723/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f79617a616e2d616c6e75676e7567682f6c61726176656c2d73657474696e67733f636f6c6f723d626c7565)[![Latest Version on Packagist](https://camo.githubusercontent.com/1a5f3eec4b4ce3588c67f4f1fe10758e570f89862e59022cde4518751f1345ec/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f79617a616e2f6c61726176656c2d73657474696e67732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/laravel-settings)[![Laravel](https://github.com/yazan-alnugnugh/laravel-settings/actions/workflows/laravel.yml/badge.svg)](https://github.com/yazan-alnugnugh/laravel-settings/actions/workflows/laravel.yml)

Supporting Laravel Settings Package
-----------------------------------

[](#supporting-laravel-settings-package)

- [Become sponsor on Patreon](https://www.patreon.com/yazan_alnughnugh).
- [One-time donation via crypto-currencies](https://github.com/yazan-alnugnugh/laravel-datatable/blob/master/_docs/Donations/crypto/index.md).

Introduction
============

[](#introduction)

 [![laravel-vue-datatable intro image](art/Laravel-setting.png)](art/Laravel-setting.png)

**Do you like to add settings to your website or to your model? this package created for that.**

The Laravel Settings created to allow you to add general settings to your website in simple and easy way, you can add settings for a specific model item as well, Let's start using it in simple steps.

Official Documentation
----------------------

[](#official-documentation)

Documentation for Laravel Settings can be found [here](https://packages.tourismcaravan.com/docs/1/laravel-settings)

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

[](#installation)

install via composer

```
composer require yazan/laravel-settings

```

Quick Example
-------------

[](#quick-example)

### General Setting

[](#general-setting)

we will call the `set` method from `Setting` class and set key and value simply

```
$setting =  \Setting::set('age', 18);
```

Here we retrieve data from `Setting`

```
$setting =  \Setting::get('age');
// 18
```

### Model Setting

[](#model-setting)

we can set setting for specific item of Model as below

```
$user = User::find(1);
$user->setSetting('age', 18);
```

Here we retrieve Setting from model

```
$user->getSetting('age');
// 18
```

also, we can retrieve Setting as a group

```
$user->getSettingGroup('default');
//['age' => 18]
```

### Tests

[](#tests)

to start the Test Laravel settings package we can use the composer command.

```
composer test

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

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

Unknown

Total

1

Last Release

1534d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/174128792?v=4)[yazan-alnughnugh](/maintainers/yazan-alnughnugh)[@yazan-alnughnugh](https://github.com/yazan-alnughnugh)

---

Top Contributors

[![yazan-alnugnugh](https://avatars.githubusercontent.com/u/47463910?v=4)](https://github.com/yazan-alnugnugh "yazan-alnugnugh (27 commits)")

---

Tags

eloquentlaravellaravel-settingslaravel-settings-packagemodel-settingspackagesphpsettingsettings

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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