PHPackages                             zuweie/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. zuweie/settings

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

zuweie/settings
===============

description...

1.0.8(6y ago)61631MITPHPPHP &gt;=7.0.0CI failing

Since Aug 18Pushed 6y ago1 watchersCompare

[ Source](https://github.com/zuweie/zuweie-settings)[ Packagist](https://packagist.org/packages/zuweie/settings)[ RSS](/packages/zuweie-settings/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (9)Used By (0)

Zuweie Settings
===============

[](#zuweie-settings)

### Zuweie Setting 是一个laravel-admin后台配置功能。

[](#zuweie-setting-是一个laravel-admin后台配置功能)

### 项目背景

[](#项目背景)

- 因为经常在各个项目里面需要使用后台配置，为了不重复编码，把配置做成一个laravel-admin的插件，方便在各个项目使用。找了一堆的settings的模块。一个都没有后台界面，让管理员怎么用～～让管理员怎么用～～让管理员怎么用～～
- 本项目使用数据库作固化，cache做加速。

### 安装

[](#安装)

- composer require zuweie/settings
- 执行以下命令

```
php artisan vendor:publish --provider="Zuweie\Setting\SettingServiceProvider"

```

```
php artisan migrate

```

- 若是在publish的过程中没有发生文件的拷贝，请将Zuweie\\Setting\\SettingServiceProvider注册到 /config/app.php中。 再进行publish和migrate。
- 安装成功后打开连接, 将会出现以下页面： [![settings](https://camo.githubusercontent.com/8a3281baad0876aef1f9d7c6ad0c8bea98345af696f5f83d70257cb5ad419db1/687474703a2f2f63646e2e71696e69752e6d696465612e62616e6b6f6f2e636f2f536e697032303139303831385f312e706e67)](https://camo.githubusercontent.com/8a3281baad0876aef1f9d7c6ad0c8bea98345af696f5f83d70257cb5ad419db1/687474703a2f2f63646e2e71696e69752e6d696465612e62616e6b6f6f2e636f2f536e697032303139303831385f312e706e67)

### 使用

[](#使用)

#### 写数据

[](#写数据)

- 打开地址：, 传入参数tags，则显示当前tags的配置。例如tags=language\_zh,打开language\_zh的配置。若tags参数为空则返回全部的配置。
- 在配置列表添加你想要的配置。

#### 读数据

[](#读数据)

- use Zuweie\\Setting\\Settings

例子：

keytagvaluehellozh你好呀waitzh等等hellojpnこんにちはwaitjpnちょっと待ってください```
/*------------------------------- get -----------------------------------*/

// get返回key的值，若没有传入tags的参数，返回一个以key为键值的值
Settings::get('hello')
=> 你好呀

// 键值对形式返回
Settings::get('hello', '', true)
=> ['hello'=>'你好呀']

Settings::get('hello', 'jpn')
=> こんにちは

// 键值对形式返回
Settings::get('hello', 'jpn', true)
=> ['hello'=>'こんにちは']

/*------------------------------- getMulit -----------------------------------*/

// getMulit返回特定的tags的键值
Settings::getMulit('zh')
=> ['你好呀', '等等‘]

Settings::getMuilt('jpn')
=> ['こんにちは', 'ちょっと待ってください']

// 键值对形式返回
Settings::getMulit('zh', true)
=> ['hello'=>'你好呀', 'wait'=>'等等‘]

Settings::getMulit('jpn', true)
=> ['hello'=>'こんにちは', 'wait'=>'ちょっと待ってください']

```

### 完了

[](#完了)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

Recently: every ~22 days

Total

8

Last Release

2368d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/35f0f3bc682bf0b1d652156802a498438c45aade93be28a9825d3fcfb9535605?d=identicon)[zuweie](/maintainers/zuweie)

---

Top Contributors

[![zuweie](https://avatars.githubusercontent.com/u/1914909?v=4)](https://github.com/zuweie "zuweie (26 commits)")

---

Tags

extensionlaravel-admin

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravel-admin-ext/chartjs

Use Chartjs in laravel-admin

102180.6k1](/packages/laravel-admin-ext-chartjs)[laravel-admin-ext/china-distpicker

Distpicker extension for laravel-admin

13443.9k](/packages/laravel-admin-ext-china-distpicker)[laravel-admin-ext/grid-sortable

Sort the grid data by drag and drop rows

42119.3k](/packages/laravel-admin-ext-grid-sortable)[jxlwqq/json-editor

JSON Editor for Laravel-admin

32101.8k](/packages/jxlwqq-json-editor)[jxlwqq/env-manager

Env Manager for Laravel-admin

3719.9k](/packages/jxlwqq-env-manager)[jxlwqq/quill

quill editor for laravel-admin

2427.1k](/packages/jxlwqq-quill)

PHPackages © 2026

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