PHPackages                             mlk9/setting-laravel - 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. mlk9/setting-laravel

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

mlk9/setting-laravel
====================

Setting (encryption) for Laravel

v3.0.3(2y ago)221MITPHPPHP &gt;=8.2

Since Sep 12Pushed 2y ago1 watchersCompare

[ Source](https://github.com/mlk9/setting-laravel)[ Packagist](https://packagist.org/packages/mlk9/setting-laravel)[ RSS](/packages/mlk9-setting-laravel/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (6)Versions (14)Used By (0)

Setting Laravel
===============

[](#setting-laravel)

Setting (encryption) for Laravel saving database
Encryption docs
Hash Salts Method

Requirement
-----------

[](#requirement)

- Laravel 6+
- PHP +8.2

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

[](#installation)

- via composer

```
composer require mlk9/setting-laravel
```

- vendor publish

```
php artisan vendor:publish --tag=setting-laravel
```

- migrate table

```
php artisan migrate
```

Usage
-----

[](#usage)

set data

```
Setting::set('KEY_NAME','VALUE');
//or
Setting::set([
'KEY_NAME' => 'VALUE',
'KEY_NAME' => 'VALUE'
]);
```

get data

```
Setting::get('KEY_NAME','DEFAULT_VALUE',$salts = []);
```

key exist

```
Setting::exists('KEY_NAME'); //output : bool
```

destroy data

```
Setting::destroy('KEY_NAME');
```

destroy all data

```
Setting::destroyAll();
```

get all data

```
Setting::all();
```

refresh salts

```
Setting::refreshSalts();
```

when you need change salts, you can use this method for replace old salts to new configure package

```
Setting::changeOldSalts(array $oldSalts);
```

### config using

[](#config-using)

#### Method 1 (recommended)

[](#method-1-recommended)

replace all config data with setting data

```
//must be same key name
Setting::set(['app.name' => 'Maleki']);
//uses at \app\Providers\AppServiceProvider.php in boot
Setting::replaceAllConfigs();
```

#### Method 2 (customize)

[](#method-2-customize)

replace custom config data with setting data

```
//in page save
Setting::set(['seo.site.name' => 'Maleki']);
//uses at \app\Providers\AppServiceProvider.php in boot
Setting::replaceConfigs(['app.name' => 'seo.site.name']);
//for test
config('app.name') // return : Maleki
```

#### Method 3 (not recommended)

[](#method-3-not-recommended)

`app\Providers\AppServiceProvider.php`

```
public function boot()
   {
    Config::set('services.example.exam1',Setting::get('example.exam'));
   }
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity71

Established project with proven stability

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

Recently: every ~134 days

Total

13

Last Release

907d ago

Major Versions

v1.1.1 → v2.0.02022-07-19

v2.1.0 → v3.0.12024-01-08

PHP version history (2 changes)v1.0.0PHP &gt;=7.1.3

v3.0.1PHP &gt;=8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/68475615?v=4)[Mohammad Maleki](/maintainers/mlk9)[@mlk9](https://github.com/mlk9)

---

Top Contributors

[![mlk9](https://avatars.githubusercontent.com/u/68475615?v=4)](https://github.com/mlk9 "mlk9 (73 commits)")

---

Tags

laravellaravel-packagesetting

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mlk9-setting-laravel/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M10](/packages/renatomarinho-laravel-page-speed)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M282](/packages/illuminate-pipeline)[illuminate/redis

The Illuminate Redis package.

8314.6M374](/packages/illuminate-redis)[illuminate/cookie

The Illuminate Cookie package.

244.6M136](/packages/illuminate-cookie)

PHPackages © 2026

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