2017 © Pedro Peláez
 

yii2-extension yii2-usermanagement

yii2 user management

image

shreenu/yii2-usermanagement

yii2 user management

  • Saturday, January 2, 2016
  • by shreenu21
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Yii2 User Management

Yii2 User Management, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

composer require shreenu/yii2-usermanagement

or add, (*4)

"shreenu/yii2-usermanagement": "*"

to the require section of your composer.json file., (*5)

and run, (*6)

composer update

Usage

change your configuration file., (*7)

'components' => [
    'user'=> [
                'identityClass' => \shreenu\usermanagement\models\User::className(),
                'enableAutoLogin' => true,
    ],
]
'modules'=> [
    'usermanagement'=>[
        'class' => \shreenu\usermanagement\usermanagementModule::className(),
    ],
],

Login and Logout URLs:

Change your menu code, (*8)

Yii::$app->user->isGuest ?
['label' => 'Login', 'url' => ['/usermanagement/user/login']] :
[
    'label' => 'Logout (' . Yii::$app->user->identity->username . ')',
    'url' => ['/usermanagement/user/logout'],
    'linkOptions' => ['data-method' => 'post']
],

The Versions

02/01 2016

dev-master

9999999-dev

yii2 user management

  Sources   Download

MIT

The Requires

 

by shreenu