opus-online/yii2-state Persistent state extension for Yii2 modules and applications

Build Status Scrutinizer Code Quality Code Coverage

Persistent state extension for Yii2 modules and applications

Provides an application component for storing persistent state information (key-value pairs) in the database.

Installation

Run migrations from your project

php yii migrate --interactive=0 --migrationPath=@vendor/opus-online/yii2-state/migrations

Add yii2-state as a system component in your common main.php

'systemState' => [
    'class' => '\opus\state\MysqlState',
    'defaults' => [ // optional
        'shopAccessEnabled' => true,
        'siteAccessEnabled' => true,
    ]
],

Running tests

Run composer install and then in the project root directory

./vendor/bin/phpunit

TODO

  • Unit tests
  • Proper migration

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

  • v0.124 September 2014

Comments



v0.1 is the latest of one release



Unknown license
Stats
2 github stars & 1 github forks
9 downloads in the last day
217 downloads in the last 30 days
44302 total downloads