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

ActiveLibrary

pkg6/laravel-settings
=====================

Store Laravel application settings in the database.

v1.0.0(1y ago)0202↓100%MITPHPPHP &gt;7.4

Since Dec 25Pushed 1y agoCompare

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

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

### 安装

[](#安装)

```
composer require pkg6/laravel-settings

```

### 在 `config/app.php` 注册

[](#在-configappphp-注册)

```
'providers' => [
    .....
    \Pkg6\Laravel\Settings\SettingsServiceProvider::class
]

php artisan vendor:publish --provider="\Pkg6\Laravel\Settings\SettingsServiceProvider::class"
php artisan vendor:publish --tag="settings"

php artisan migrate --path=database/migrations/2024_12_16_122545_create_settings_table.php

```

### 基本使用

[](#基本使用)

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

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

```

###  Health Score

26

—

LowBetter than 46% of packages

Maintenance43

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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

452d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/28b119a234a9963e2266b2b493c037b1d7f01d3e17a06a3ffe94481549efa47b?d=identicon)[1751212020](/maintainers/1751212020)

---

Top Contributors

[![chihqiang](https://avatars.githubusercontent.com/u/40115555?v=4)](https://github.com/chihqiang "chihqiang (2 commits)")

### Embed Badge

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

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

PHPackages © 2026

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