yii2-user-balance
User balance module for Yii2 apps, (*1)
Install
Run, (*2)
php composer require pantera-digital/yii2-user-balance "*"
Or add to composer.json, (*3)
"pantera-digital/yii2-user-balance": "*",
and execute:, (*4)
php composer update
Migrations:, (*5)
php yii migrate --migrationPath=vendor/pantera-digital/yii2-user-balance/migrations
Usage
Add below lines to 'components' section:, (*6)
'userBalance' => [
'class' => \pantera\user\balance\Component::class,
'userModel' => 'path-to-your-user-module\models\User',
],
And add this to 'modules' section:, (*7)
'user-balance' => [
'class' => \pantera\user\balance\Module::class,
'access' => ['admin'], // by default 'access' => ['@']
]