PHPackages                             mbenedek/yii2-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. mbenedek/yii2-settings

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

mbenedek/yii2-settings
======================

Yii2 settings with database module with GUI manager supported

1.0.5(10y ago)08Apache-2.0PHP

Since Jun 30Pushed 8y ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (7)Used By (0)

yii2-settings
=============

[](#yii2-settings)

[![Latest Stable Version](https://camo.githubusercontent.com/5ecf377a35d5ca2947643936ceddb3a591afde04b852772f60fa730172502484/68747470733a2f2f706f7365722e707567782e6f72672f6d62656e6564656b2f796969322d73657474696e67732f762f737461626c65)](https://packagist.org/packages/mbenedek/yii2-settings)[![License](https://camo.githubusercontent.com/5bd66928eae18c99f145808085617121e3d54c3cbd24ea2cea7db56596daa588/68747470733a2f2f706f7365722e707567782e6f72672f6d62656e6564656b2f796969322d73657474696e67732f6c6963656e7365)](https://packagist.org/packages/mbenedek/yii2-settings)[![Total Downloads](https://camo.githubusercontent.com/5588e33f544efca1f41ab74d0f6a35d386ce447636328ca16c28623679e27a47/68747470733a2f2f706f7365722e707567782e6f72672f6d62656e6564656b2f796969322d73657474696e67732f646f776e6c6f616473)](https://packagist.org/packages/mbenedek/yii2-settings)[![Monthly Downloads](https://camo.githubusercontent.com/f402e4a004577aee3da662c84a28d988c787d627fa795208eba506e7f21259df/68747470733a2f2f706f7365722e707567782e6f72672f6d62656e6564656b2f796969322d73657474696e67732f642f6d6f6e74686c79)](https://packagist.org/packages/mbenedek/yii2-settings)[![Daily Downloads](https://camo.githubusercontent.com/3a5e22565df9d37cddfcac093fca5580c1a8577ec4b112744a53d4b11fff47bd/68747470733a2f2f706f7365722e707567782e6f72672f6d62656e6564656b2f796969322d73657474696e67732f642f6461696c79)](https://packagist.org/packages/mbenedek/yii2-settings)

Yii2 settings with database module with GUI manager supported

[![yii2-settings](https://camo.githubusercontent.com/2c42d2deda56f3a8fb106773cc8bd7b22e36e9173b7ea4eccef7cbe20958da8c/68747470733a2f2f63312e737461746963666c69636b722e636f6d2f312f3439312f31383736303336353437335f643561656434363139645f7a2e6a7067 "yii2-settings")](https://camo.githubusercontent.com/2c42d2deda56f3a8fb106773cc8bd7b22e36e9173b7ea4eccef7cbe20958da8c/68747470733a2f2f63312e737461746963666c69636b722e636f6d2f312f3439312f31383736303336353437335f643561656434363139645f7a2e6a7067)

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist mbenedek/yii2-settings "*"

```

or add

```
"mbenedek/yii2-settings": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

\####Add settings into component config:

```
'components' => [
    'settings'=>[
        'class'=>'mbenedek\settings\Settings'
    ],
],
```

\####Ok let see this codesnipet to use:

```
$settings = Yii::$app->settings;

$value = $settings->get('section,'key');

$settings->set('section','key', 'value', 'integer');

$settings->delete('section,'key');

$settings->deleteAll('section,'key');

$settings->clearCache(); // automatic call when use set()
```

\####Look at line:

```
$settings->set($section,$key,$value,$type);
```

You can use $section for distribute setting such as system,user... And the $type will be use for get settings. This extension have used [settype](http://php.net/manual/en/function.settype.php) for set the type of a setting when you get it

\####If you want to manager setting with GUI then add settings into module config:

```
'modules' => [
    'settings' =>  [
        'class'=>'mbenedek\settings\Module',
    ]
]
```

And go to localhost/index.php?r=settings/manager/index.php

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 62.5% 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 ~43 days

Recently: every ~53 days

Total

6

Last Release

3755d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/83e4424007947aec57446751058e5c8bfebdb2ebce57266cecabfce728c6ab7c?d=identicon)[mbenedek](/maintainers/mbenedek)

---

Top Contributors

[![johnitvn](https://avatars.githubusercontent.com/u/8359652?v=4)](https://github.com/johnitvn "johnitvn (30 commits)")[![mbenedek](https://avatars.githubusercontent.com/u/1043048?v=4)](https://github.com/mbenedek "mbenedek (8 commits)")[![valery-lavrik](https://avatars.githubusercontent.com/u/8047999?v=4)](https://github.com/valery-lavrik "valery-lavrik (8 commits)")[![matsinet](https://avatars.githubusercontent.com/u/633137?v=4)](https://github.com/matsinet "matsinet (1 commits)")[![zorobabel](https://avatars.githubusercontent.com/u/188807214?v=4)](https://github.com/zorobabel "zorobabel (1 commits)")

### Embed Badge

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

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

###  Alternatives

[johnitvn/yii2-settings

Yii2 settings with database module with GUI manager supported

215.8k](/packages/johnitvn-yii2-settings)

PHPackages © 2026

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