2017 © Pedro Peláez
 

yii2-extension yii2-users

Users

image

jakharbek/yii2-users

Users

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 29 % Grown

The README.md

Users Functionality

Users Functionality, (*1)

Installation

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

Either run, (*3)

php composer.phar require --prefer-dist jakharbek/yii2-users "*"

or add, (*4)

"jakharbek/yii2-users": "*"

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

Configuration

Connect the module to the public (frontend) part:, (*6)

module path, (*7)

jakharbek\users\modules\user\Module

and specify the path to the token confirmation controller, (*8)

'confirmLink', 'unConfirmLink'

example, (*9)

'modules' => [

    ...

    'users' => [
            'class' => 'jakharbek\users\modules\user\Module',
            'confirmLink' => 'http://sitename.loc/users/token/confirm?token=',
            'unConfirmLink' => 'http://sitename.loc/users/token/unconfirm?token=',
        ],
    ],

Connect the module to the admin (backend) part:, (*10)

module path, (*11)

jakharbek\users\modules\admin\Module

and specify the path to the token confirmation controller from frontend public part, (*12)

'confirmLink', 'unConfirmLink'

example, (*13)

'modules' => [

    ...

    'users' => [
            'class' => 'jakharbek\users\modules\admin\Module',
            'confirmLink' => 'http://sitename.loc/users/token/confirm?token=',
            'unConfirmLink' => 'http://sitename.loc/users/token/unconfirm?token=',
        ],
    ],

After you have to connect the controllers, (*14)

'controllerMap' => [
        'login' => 'jakharbek\users\modules\admin\controllers\LoginController',
        'logout' => 'jakharbek\users\modules\admin\controllers\LogoutController',
    ],

and you also need to configure the mail component and should be under the mailer ID, (*15)

and add in main params your email, (*16)

[
    'email_from' => 'your@mail',
]

and you must make migration. you can find migrations from folder migrations in extension's folder, (*17)

The Versions

01/06 2018

dev-master

9999999-dev

Users

  Sources   Download

MIT

The Requires

 

extension yii2

29/05 2018

1.1

1.1.0.0

Users

  Sources   Download

MIT

The Requires

 

extension yii2

29/05 2018

1.0

1.0.0.0

Users

  Sources   Download

MIT

The Requires

 

extension yii2