kasser / ksconfig
Yii2 module for key-value settings support
dev-master
2016-02-16 13:36 UTC
Requires
- yiisoft/yii2: ~2.0
Requires (Dev)
- yiisoft/yii2-codeception: ~2.0
This package is not auto-updated.
Last update: 2026-05-13 18:21:27 UTC
README
Yii2 module for key-value settings support
Installation
Either run
php composer.phar require --prefer-dist kasser/ksconfig "*"
or add
"kasser/ksconfig": "*"
to the require section of your composer.json file.
Subsequently, run
./yii migrate/up --migrationPath=@vendor/kasser/ksconfig/migrations
in order to create the settings table in your database.
Usage
Typical component usage
$ksconfig = Yii::$app->getModule('ksconfig'); $value = $ksconfig->getVariable('email');