PHPackages                             kotus/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. [Security](/categories/security)
4. /
5. kotus/laravel-settings

AbandonedArchivedLibrary[Security](/categories/security)

kotus/laravel-settings
======================

Simple key/value secure settings stored in database

v1.2.0(5y ago)2204[3 PRs](https://github.com/b-deshayes/laravel-settings/pulls)MITPHPPHP ^7.3

Since Jul 21Pushed 3y ago1 watchersCompare

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

READMEChangelog (5)Dependencies (5)Versions (10)Used By (0)

laravel-settings
================

[](#laravel-settings)

[![Units tests](https://github.com/Kotus-s/laravel-settings/workflows/Units%20tests/badge.svg?branch=master)](https://github.com/Kotus-s/laravel-settings/workflows/Units%20tests/badge.svg?branch=master)

Simple key/value secure settings stored in database

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

[](#installation)

Install the package via composer.

```
composer require kotus/laravel-settings
```

Publish the config file and fill in the configs. Be sure to provide defaults settings before running the `php artisan migrate` command.

```
php artisan vendor:publish --provider="Kotus\Settings\Providers\SettingsServiceProvider" --tag="config"
```

Be sure to run migration to create the settings table.

```
php artisan migrate
```

Usage
-----

[](#usage)

You can now use any of the following methods to handle your settings.

```
 Settings::get($key = null, array $options = [])
 Settings::has(string $key, array $options = []): bool
 Settings::set(string $key, string $value, array $options = []): bool
 Settings::add(string $key, string $value, array $options = []): bool
 Settings::flushCache(array $tenants = []): void
```

At any point, you can pass a specific tenant in option like this:

```
$value = Settings::get('my_settings', ['tenant' => 'my_tenant']);
```

All settings are cache by tenant category depending on the ttl defined in config file. Default is 30 minutes. Whenever you add or change a setting, the cache is flush.

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

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Total

5

Last Release

2022d ago

PHP version history (2 changes)v1.0.0PHP ^7.2.5

v1.2.0PHP ^7.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8664797?v=4)[Kotus](/maintainers/Kotus)[@kotus](https://github.com/kotus)

---

Top Contributors

[![b-deshayes](https://avatars.githubusercontent.com/u/15613323?v=4)](https://github.com/b-deshayes "b-deshayes (21 commits)")

---

Tags

encryptionkey-valuelaravelpersistentsetting

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k89.8M1.0k](/packages/spatie-laravel-permission)[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k43.5M5.2k](/packages/larastan-larastan)[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M531](/packages/laravel-passport)[silber/bouncer

Eloquent roles and abilities.

3.6k4.4M25](/packages/silber-bouncer)[laravel/pennant

A simple, lightweight library for managing feature flags.

57311.1M53](/packages/laravel-pennant)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)

PHPackages © 2026

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