2017 © Pedro Peláez
 

yii2-extension yii2-user-balance

image

pantera-digital/yii2-user-balance

  • Friday, April 13, 2018
  • by webmayak
  • Repository
  • 2 Watchers
  • 0 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

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' => ['@']
]

The Versions

13/04 2018

dev-master

9999999-dev

  Sources   Download