PHPackages                             d4rkstar/yii2-dbconfig - 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. [Database &amp; ORM](/categories/database)
4. /
5. d4rkstar/yii2-dbconfig

ActiveYii2-extension[Database &amp; ORM](/categories/database)

d4rkstar/yii2-dbconfig
======================

Yii 2 Database Configuration

135PHP

Since Feb 14Pushed 10y ago3 watchersCompare

[ Source](https://github.com/d4rkstar/yii2-dbconfig)[ Packagist](https://packagist.org/packages/d4rkstar/yii2-dbconfig)[ RSS](/packages/d4rkstar-yii2-dbconfig/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-dbconfig
=============

[](#yii2-dbconfig)

This widget will integrate quickly a backend and frontend for application settings.

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

[](#installation)

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

### Install

[](#install)

Either run

```
$ php composer.phar require d4rkstar/yii2-dbconfig "dev-master"

```

or add

```
"d4rkstar/yii2-dbconfig": "dev-master"

```

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

You'll need to apply database migration from the CLI:

```
./yii migrate --migrationPath=@vendor/d4rkstar/yii2-dbconfig/migrations

```

### Sample Usage

[](#sample-usage)

In the parameter `bootstrap` of your `app/config/web.php`, add:

```
'bootstrap' => ['log','dbconfig'],

```

In the section `components` of your `app/config/web.php`, add:

```
'components' => [
    ...
    'dbconfig' => [
        'class'=>'d4rkstar\dbconfig\components\ConfigurationUtils',
    ],
]

```

In the section `modules` of your `app/config/web.php`, add:

```
'modules' => [
    ...
    'dbconfig' => [
        'class' => 'd4rkstar\dbconfig\Module',
    ],
]

```

Anywhere in your code, you can read settings easyly:

```
...

$myValue = Yii::$app->dbconfig->section->parameter->value;

...

```

You can administer the settings from the url dbconfig/settings/index. You can add new settings from the url dbconfig/settings/manage.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

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/0621d4cadad42f999d6e1579c6de56833cde5cdb9a4387261e3392835d96d471?d=identicon)[d4rkstar](/maintainers/d4rkstar)

---

Top Contributors

[![d4rkstar](https://avatars.githubusercontent.com/u/4957015?v=4)](https://github.com/d4rkstar "d4rkstar (10 commits)")

### Embed Badge

![Health badge](/badges/d4rkstar-yii2-dbconfig/health.svg)

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

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k116.5M113](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)

PHPackages © 2026

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