PHPackages                             andrylik/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. [Localization &amp; i18n](/categories/localization)
4. /
5. andrylik/yii2-settings

ActiveYii2-extension[Localization &amp; i18n](/categories/localization)

andrylik/yii2-settings
======================

Settings Manager for Yii2 with the possibility of translating values.

0.2.0(2y ago)018MITPHP

Since Dec 24Pushed 4mo ago1 watchersCompare

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

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

 [ ![](https://camo.githubusercontent.com/8317c17418b39410a660f5149071d26c5023c0d5fb2b7ebb771324812f666d73/68747470733a2f2f796969736f66742e6769746875622e696f2f646f63732f696d616765732f7969695f6c6f676f2e737667) ](https://github.com/yiisoft)

Yii2 Settings Extension
=======================

[](#yii2-settings-extension)

Settings Manager for Yii2 with the possibility of translating values.

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

[](#installation)

Via [Composer](http://getcomposer.org/download/).

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

**Database Migrations**

Before usage this extension, we'll also need to prepare the database.

```
php yii migrate --migrationPath=@vendor/andrylik/yii2-settings/migrations
```

Configuration
-------------

[](#configuration)

**Module Setup**

Configure "Yii2 Settings Extension" module in `backend/config/main.php`:

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

If you need to translate the values to other languages

add parameters in `common/config/params.php`

```
return [
    // ...
    'languages' => ['uk', 'ru', 'en'], //languages to translate
    'defaultLanguage' => 'uk' //default app language
];
```

Also specify the language of the application `common/config/main.php`

```
return [
    // ...
    'language' => 'uk',
    //..
];
```

**Component Setup**

Configure Settings Component `common/config/main.php`

```
'components' => [
    'cache' => [
        'class' => \yii\caching\FileCache::class,
        'cachePath' => '@frontend/runtime/cache'
    ],
    'settings' => [
        'class' => 'andrylik\settings\components\Settings',
    ],
],
```

Usage:
------

[](#usage)

Go to `http://backend.yourdomain.com/settings/default/index` for managing your settings

Add a setting, for example, like this

```
Section: site

Key: default_title

Value: my super website

Description: default site title

```

Use the settings in your application

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

$title = $settings->get('site', 'default_title');
```

###  Health Score

25

—

LowBetter than 40% of packages

Maintenance52

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

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

818d ago

### Community

Maintainers

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

---

Top Contributors

[![Andrylik](https://avatars.githubusercontent.com/u/13303563?v=4)](https://github.com/Andrylik "Andrylik (3 commits)")

---

Tags

yii2yii2-extensionyii2-settingsyii2-settings-moduleyii2-settings-translateSettingsi18ntranslateconfigyii2

### Embed Badge

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

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

###  Alternatives

[codemix/yii2-localeurls

Automatic locale/language management for URLs.

4081.3M29](/packages/codemix-yii2-localeurls)[lajax/yii2-translate-manager

Translation management extension for Yii 2

227573.2k13](/packages/lajax-yii2-translate-manager)[geertw/yii2-translatable-url-rule

A custom URL rule class for Yii 2 which allows to create translated URL rules

1419.7k](/packages/geertw-yii2-translatable-url-rule)[devgroup/yii2-multilingual

Allows building yii2 apps for multiple languages using regional URL's and domains

152.6k1](/packages/devgroup-yii2-multilingual)[tigrov/yii2-country

Country data for Yii2 using Intl extension and more.

151.1k](/packages/tigrov-yii2-country)

PHPackages © 2026

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