2017 © Pedro Peláez
 

yii2-extension yii2-user

Yii2 module for user auth

image

worstinme/yii2-user

Yii2 module for user auth

  • Wednesday, January 17, 2018
  • by worstinme
  • Repository
  • 2 Watchers
  • 1 Stars
  • 1,041 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 1 % Grown

The README.md

yii2-user

In developing. Use at your own risk, (*1)

User Auth / DB-RBAC / AuthClient module stiled with Uikit Framework., (*2)

Latest Stable Version Total Downloads, (*3)

Installation

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

Either run, (*5)

php composer.phar require --prefer-dist worstinme/yii2-user

or add, (*6)

"worstinme/yii2-user": "^1.0.0"

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

Required configurations

'modules' => [
    'user' => [
        'class' => 'worstinme\user\Module',
    ],
    'useradmin' => [
        'class' => 'worstinme\user\backend\Module',
    ],
    ....
 ],
'components' => [
    'user' => [
        'class'=>'worstinme\user\User',
        'identityClass' => 'worstinme\user\models\User',
        'enableAutoLogin' => true,
        'loginUrl'=>['/user/default/login'],
    ],
    'authClientCollection' => [
        'class' => 'yii\authclient\Collection',
        'clients' => [
            'google' => [
                'class' => 'yii\authclient\clients\GoogleOpenId'
            ],
            'facebook' => [
                'class' => 'yii\authclient\clients\Facebook',
                'clientId' => 'facebook_client_id',
                'clientSecret' => 'facebook_client_secret',
            ],
            // etc.
        ],
    ]
    //  ...
]

RBAC configurations

to web.php & console.php components section, (*8)

    'authManager' => [
            'class' => 'yii\rbac\DbManager',
    ],
]

& migrations, (*9)

$ yii migrate --migrationPath=@yii/rbac/migrations/

Then, use migrations to create user tables & default user administrator:administrator with admin role(don't forget to change it's default password)., (*10)

$ yii migrate --migrationPath=@worstinme/user/migrations/

The Versions

17/01 2018

dev-master

9999999-dev

Yii2 module for user auth

  Sources   Download

MIT

The Requires

 

user yii2 module eauth

07/02 2017

1.0.2

1.0.2.0

Yii2 module for user auth

  Sources   Download

MIT

The Requires

 

user yii2 module eauth

28/05 2016

1.0.1

1.0.1.0

Yii2 module for user auth

  Sources   Download

MIT

The Requires

 

user yii2 module eauth

03/05 2016

1.0.0

1.0.0.0

Yii2 module for user auth

  Sources   Download

MIT

The Requires

 

user yii2 module eauth

15/04 2016

0.0.7

0.0.7.0

Yii2 module for user auth

  Sources   Download

MIT

The Requires

 

user yii2 module eauth

08/10 2015

0.0.6

0.0.6.0

Yii2 module for user auth

  Sources   Download

MIT

The Requires

 

user yii2 module eauth