opus-online / yii2-state
There is no license information available for the latest version (v0.1) of this package.
Persistent state extension for Yii2 modules and applications
This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.
Package info
github.com/opus-online/yii2-state
Type:yii2-extension
pkg:composer/opus-online/yii2-state
v0.1
2014-09-24 12:47 UTC
Requires
- yiisoft/yii2: *
Requires (Dev)
- phpunit/phpunit: 4.2.*
This package is not auto-updated.
Last update: 2024-01-15 23:30:59 UTC
README
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