2017 © Pedro Peláez
 

yii2-extension yii2-config

Yii2 config module. With CRUD and service provider

image

hexaua/yii2-config

Yii2 config module. With CRUD and service provider

  • Tuesday, January 30, 2018
  • by hexaua
  • Repository
  • 1 Watchers
  • 0 Stars
  • 230 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 32 % Grown

The README.md

Yii2 Config Manager build status coverage report

Description here, (*1)

Installation

Run command, (*2)

composer require hexaua/yii2-config:*

OR add following lines to composer.json file in require section, (*3)

{
    "require": {
        "hexaua/yii2-config": "*"
    }
}

Migrations

To run migrations execute following command from project root directory, (*4)

php yii migrate --migrationPath=@hexaua/yiiconfig/migrations

Usage

[
    'components' => [
        'config' => [
              'class'          => 'hexaua\yiiconfig\component\ManagerConfig',
              'providerConfig' => [
                  'class'    => 'hexaua\yiiconfig\component\providers\DbProvider',
                  'duration' => 3600 // Cache duration in seconds
              ]
        ]
    ]
]

The Versions