PHPackages                             quangthinh/yii2-setting - 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. quangthinh/yii2-setting

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

quangthinh/yii2-setting
=======================

Yii2 Setting module

0138PHP

Since May 23Pushed 9y ago1 watchersCompare

[ Source](https://github.com/vuquangthinh/yii2-setting)[ Packagist](https://packagist.org/packages/quangthinh/yii2-setting)[ RSS](/packages/quangthinh-yii2-setting/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 Setting
============

[](#yii2-setting)

Chạy migrations

```
yii migrate -p=@vendor/quangthinh/yii2-setting/migrations

```

Thêm quangthinh\\yii\\setting\\Connection như là 1 component của yii2

Với các setting Tạo model cần thiết kế thừa quangthinh\\yii\\setting\\Model Các public field sẽ được lưu trữ như là setting key Để phân biệt các setting model có thể sử dụng section làm giá trị phân biệt như là prefix

Sử dụng dễ vãi chưởng.

Tạo Model extends quangthinh\\yii\\setting\\Model

khai báo các fields tương ứng với data cần ghi viết rules nếu cần. Mặc định sử dụng rule string với các fields

Viết form tương tự form thông thường. Sử dụng $model-&gt;update() để cập nhật giá trị

Tại vị trí sử dụng. gọi Yii::$app-&gt;setting\[$key\]. với $key có dạng section#field Section mặc định sẽ là tên Class

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9eb0adef83101ce84cfea0dd64562604df50812e8de9a9464e44dcdfcbe59698?d=identicon)[tut4ever](/maintainers/tut4ever)

---

Top Contributors

[![vuquangthinh](https://avatars.githubusercontent.com/u/1710072?v=4)](https://github.com/vuquangthinh "vuquangthinh (13 commits)")

### Embed Badge

![Health badge](/badges/quangthinh-yii2-setting/health.svg)

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

PHPackages © 2026

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