wolfguard/yii2-config

Yii2 module for database based configurations editing

Installs: 3 039

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 1

Open Issues: 0

Type:yii2-extension

v0.1.0 2014-12-28 15:13 UTC

This package is not auto-updated.

Last update: 2024-10-26 17:13:37 UTC


README

Yii2 module for database based configurations editing

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist wolfguard/yii2-config "*"

or add

"wolfguard/yii2-config": "*"

to the require section of your composer.json file.

After running

php composer.phar update

run

yii migrate --migrationPath=@vendor/wolfguard/yii2-config/migrations

After that change your main configuration file config/web.php

<?php return [
    ...
    'modules' => [
        ...
        'config' => [
            'class' => 'wolfguard\config\Module',
        ],
        ...
    ],
    ...
];

Usage

Once the extension is installed, simply use it in your code by :

<?= \wolfguard\config\widgets\Config::widget(['code' => 'email-from']); ?>