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

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

rawilk/laravel-settings
=======================

Store Laravel application settings in the database.

v4.0.0(1mo ago)298216.5k↓68.9%21[1 issues](https://github.com/rawilk/laravel-settings/issues)[1 PRs](https://github.com/rawilk/laravel-settings/pulls)1MITPHPPHP ^8.2CI passing

Since Aug 2Pushed 1w ago4 watchersCompare

[ Source](https://github.com/rawilk/laravel-settings)[ Packagist](https://packagist.org/packages/rawilk/laravel-settings)[ Docs](https://github.com/rawilk/laravel-settings)[ GitHub Sponsors](https://github.com/rawilk)[ RSS](/packages/rawilk-laravel-settings/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (10)Dependencies (16)Versions (29)Used By (1)

Settings for Laravel
====================

[](#settings-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/746da86ad02a333a934299d4ffa07c5878028c2653c05e8d219084522c1fa8da/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726177696c6b2f6c61726176656c2d73657474696e67732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rawilk/laravel-settings)[![Tests](https://github.com/rawilk/laravel-settings/workflows/Tests/badge.svg?style=flat-square)](https://github.com/rawilk/laravel-settings/workflows/Tests/badge.svg?style=flat-square)[![Total Downloads](https://camo.githubusercontent.com/4fcfbb5121d006f73ad951beb148ce6f77e258667906d368495a1de2b1b34499/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726177696c6b2f6c61726176656c2d73657474696e67732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rawilk/laravel-settings)[![PHP from Packagist](https://camo.githubusercontent.com/45f794f72ef3b56777aa4131bb894d0fb70ddb564b0823599e6d0cf9c1eedaae/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f726177696c6b2f6c61726176656c2d73657474696e67733f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rawilk/laravel-settings)[![License](https://camo.githubusercontent.com/4cd656c20589755a81d943ec918d4ac3982f3b66555b30fe2dc64d197beb7f1d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f726177696c6b2f6c61726176656c2d73657474696e67733f7374796c653d666c61742d737175617265)](https://github.com/rawilk/laravel-settings/blob/main/LICENSE.md)

[![social image](https://camo.githubusercontent.com/5c102a1b8ebcd147a13d66b1d9bf43772a76f61539099875e37387b146516a8d/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f53657474696e6773253230666f722532304c61726176656c2e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d726177696c6b2532466c61726176656c2d73657474696e6773267061747465726e3d617263686974656374267374796c653d7374796c655f31266465736372697074696f6e3d53746f72652b4c61726176656c2b6170706c69636174696f6e2b73657474696e67732b696e2b7468652b64617461626173652e266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d636f67)](https://camo.githubusercontent.com/5c102a1b8ebcd147a13d66b1d9bf43772a76f61539099875e37387b146516a8d/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f53657474696e6773253230666f722532304c61726176656c2e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d726177696c6b2532466c61726176656c2d73657474696e6773267061747465726e3d617263686974656374267374796c653d7374796c655f31266465736372697074696f6e3d53746f72652b4c61726176656c2b6170706c69636174696f6e2b73657474696e67732b696e2b7468652b64617461626173652e266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d636f67)

Settings for Laravel enables you to store your application's settings in the database. It can work alongside the built-in configuration system that Laravel offers. With this package, you can store application-specific settings that wouldn't make sense to store in a configuration file, or that you want end-users to be able to update through your application's UI.

The package also offers caching on a per-setting basis out of the box, so no unnecessary extra queries are performed when retrieving settings. The caching works no matter which driver you choose to use. The package also encrypts your settings automatically for you if you need to store sensitive data such as passwords for a third-party service you need to be able to use later.

To get and retrieve stored settings, you can do it with the `Settings` facade or by using the `settings()` helper function:

```
use Rawilk\Settings\Facades\Settings;

// Setting
Settings::set('foo', 'bar');
settings()->set('foo', 'bar');
settings(['foo' => 'bar']);

// Retrieving
Settings::get('foo'); // 'bar'
settings()->get('foo');
settings('foo');
```

Documentation
-------------

[](#documentation)

For documentation, please visit:

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

[](#installation)

You can install the package via composer:

```
composer require rawilk/laravel-settings
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="settings-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="settings-config"
```

You can view the default configuration here:

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Randall Wilk](https://github.com/rawilk)
- [All Contributors](../../contributors)

Alternatives
------------

[](#alternatives)

- [spatie/laravel-settings](https://github.com/spatie/laravel-settings)

Disclaimer
----------

[](#disclaimer)

This package is not affiliated with, maintained, authorized, endorsed or sponsored by Laravel or any of its affiliates.

The package only supports the stable versions of PHP and Laravel that are tested against in the automated test suite.

License
-------

[](#license)

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

###  Health Score

66

—

FairBetter than 99% of packages

Maintenance94

Actively maintained with recent releases

Popularity53

Moderate usage in the ecosystem

Community22

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 79.9% 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 ~92 days

Recently: every ~199 days

Total

24

Last Release

46d ago

Major Versions

1.0.3 → 2.0.02020-12-01

v1.x-dev → v2.x-dev2023-09-29

v2.x-dev → v3.0.02023-09-29

v3.4.1 → v4.0.02026-05-16

PHP version history (7 changes)1.0.0PHP ^7.4

2.0.0PHP ^8.0

v2.1.0PHP ^8.0|^8.1

v2.2.2PHP ^8.0|^8.1|^8.2

v3.0.0PHP ^8.1|^8.2|^8.3

v3.4.1PHP ^8.1

v4.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/1e2f599d4d290bbb514a933d4f21c3f18fb093f5f8a9994cb17f5469853c749c?d=identicon)[rawilk](/maintainers/rawilk)

---

Top Contributors

[![rawilk](https://avatars.githubusercontent.com/u/22842525?v=4)](https://github.com/rawilk "rawilk (207 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (30 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (17 commits)")[![BJTheCod3r](https://avatars.githubusercontent.com/u/21208572?v=4)](https://github.com/BJTheCod3r "BJTheCod3r (3 commits)")[![demianottema](https://avatars.githubusercontent.com/u/44736169?v=4)](https://github.com/demianottema "demianottema (1 commits)")[![lakuapik](https://avatars.githubusercontent.com/u/20186786?v=4)](https://github.com/lakuapik "lakuapik (1 commits)")

---

Tags

database-settingseloquent-settingslaravel-settingssettingsSettingslaravel-settingsdatabase settingsrawilkeloquent model settings

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-medialibrary

Associate files with Eloquent models

6.1k43.2M632](/packages/spatie-laravel-medialibrary)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8793.2M25](/packages/yajra-laravel-oci8)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M165](/packages/spatie-laravel-health)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.5M2](/packages/glushkovds-phpclickhouse-laravel)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

440902.9k1](/packages/clickbar-laravel-magellan)

PHPackages © 2026

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