PHPackages                             kovalin/yii2-mconfig - 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. kovalin/yii2-mconfig

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

kovalin/yii2-mconfig
====================

Yii2 MConfig Module

09PHP

Since Aug 5Pushed 7y ago1 watchersCompare

[ Source](https://github.com/kovalin/yii2-mconfig)[ Packagist](https://packagist.org/packages/kovalin/yii2-mconfig)[ RSS](/packages/kovalin-yii2-mconfig/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 MConfig Module
===================

[](#yii2-mconfig-module)

Easy Installation
-----------------

[](#easy-installation)

### Install with composer

[](#install-with-composer)

To install with [Composer](https://getcomposer.org/), simply require the latest version of this package.

```
composer require kovalin/yii2-mconfig "dev-master"
```

### Download and install

[](#download-and-install)

Download an archive of MConfig and extract module files it into the /modules/mconfig/ directory your Yii application.

- You can download zip archive

### Install with git

[](#install-with-git)

From the command line, switch to the /modules directory your Yii application and run the following commands:

```
git clone https://github.com/kovalin/yii2-mconfig.git
mv yii2-mconfig mconfig
```

### Configuration

[](#configuration)

**Database Migrations**

Before using Comments Widget, we'll also need to prepare the database.

```
php yii migrate --migrationPath=modules/mconfig/migrations
```

**Config your Yii app**

Once the extension is installed, simply modify your application configuration as follows:

```
return [
     'components' => [
        'MConfig' => [
            'class' => 'app\modules\mconfig\components\MConfig'
        ],
    'modules' => [
        'mconfig' => [
            'class' => 'app\modules\mconfig\Module',
        ]
    ],
];
```

### Usage

[](#usage)

You can use this code in any place of your app.

```
Yii::$app->MConfig->get('adminEmail');
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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/e87b4b8ac773f872432e138ea0485dd861ae8ae3cff5dd16bae4d96d1c79b1c6?d=identicon)[kovalin](/maintainers/kovalin)

---

Top Contributors

[![kovalin](https://avatars.githubusercontent.com/u/1903420?v=4)](https://github.com/kovalin "kovalin (20 commits)")

### Embed Badge

![Health badge](/badges/kovalin-yii2-mconfig/health.svg)

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

PHPackages © 2026

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