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

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

newrow/yii2-settings
====================

Yii2 settings with database module with GUI manager supported

1.0.8(7y ago)03.8k1Apache-2.0PHP

Since Jun 30Pushed 7y ago1 watchersCompare

[ Source](https://github.com/nir100/yii2-settings)[ Packagist](https://packagist.org/packages/newrow/yii2-settings)[ RSS](/packages/newrow-yii2-settings/feed)WikiDiscussions master Synced 1w ago

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

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

[](#yii2-settings)

[![Latest Stable Version](https://camo.githubusercontent.com/4683e3e87af01588ce61af1f2ae41069450dd5041c3c8a8712b45c8f38a93b25/68747470733a2f2f706f7365722e707567782e6f72672f6a6f686e6974766e2f796969322d73657474696e67732f762f737461626c65)](https://packagist.org/packages/johnitvn/yii2-settings)[![License](https://camo.githubusercontent.com/b3262c62f4a5daa8f93514b618ba53e1758a5e1b604581b0de38a82a1cb93f91/68747470733a2f2f706f7365722e707567782e6f72672f6a6f686e6974766e2f796969322d73657474696e67732f6c6963656e7365)](https://packagist.org/packages/johnitvn/yii2-settings)[![Total Downloads](https://camo.githubusercontent.com/b7285f3a0f3e184dd19d599df1d597de30c3441b167c798b54bef5fc8efab160/68747470733a2f2f706f7365722e707567782e6f72672f6a6f686e6974766e2f796969322d73657474696e67732f646f776e6c6f616473)](https://packagist.org/packages/johnitvn/yii2-settings)[![Monthly Downloads](https://camo.githubusercontent.com/3c853d5468caa92b5f524c68f4c936cf9d5ac0dc2433d576b357eecaf57b2d51/68747470733a2f2f706f7365722e707567782e6f72672f6a6f686e6974766e2f796969322d73657474696e67732f642f6d6f6e74686c79)](https://packagist.org/packages/johnitvn/yii2-settings)[![Daily Downloads](https://camo.githubusercontent.com/0d2cacc00bba6592ed7064b277580a7a6edf1d0a097dfd9f444706fc511072b7/68747470733a2f2f706f7365722e707567782e6f72672f6a6f686e6974766e2f796969322d73657474696e67732f642f6461696c79)](https://packagist.org/packages/johnitvn/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 newrow/yii2-settings "*"

```

or add

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

```

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

Usage
-----

[](#usage)

\####Add settings into component config:

```
'components' => [
    'settings'=>[
        'class'=>'newrow\settings\Settings',
        'roles' => ['admin'],
    ],
],
```

\####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'=>'newrow\settings\Module',
    ]
]
```

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

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 73.2% 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 ~155 days

Recently: every ~307 days

Total

9

Last Release

2737d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b848e1eeb9342880558926867e61925cdcf388e17494f31a8b5c2ad7cbc2224b?d=identicon)[nireli100](/maintainers/nireli100)

---

Top Contributors

[![johnitvn](https://avatars.githubusercontent.com/u/8359652?v=4)](https://github.com/johnitvn "johnitvn (30 commits)")[![valery-lavrik](https://avatars.githubusercontent.com/u/8047999?v=4)](https://github.com/valery-lavrik "valery-lavrik (8 commits)")[![DenisSicunKaltura](https://avatars.githubusercontent.com/u/71438490?v=4)](https://github.com/DenisSicunKaltura "DenisSicunKaltura (1 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/newrow-yii2-settings/health.svg)

```
[![Health](https://phpackages.com/badges/newrow-yii2-settings/health.svg)](https://phpackages.com/packages/newrow-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)
