PHP code example of jakharbek / yii2-users

1. Go to this page and download the library: Download jakharbek/yii2-users library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

jakharbek / yii2-users example snippets


php composer.phar 

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

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

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