PHP code example of murat-celik / usermanagement

1. Go to this page and download the library: Download murat-celik/usermanagement 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/ */

    

murat-celik / usermanagement example snippets


  composer 

  'homeUrl'=>'site/index',

'modules' => [
        'user' => [
            'class' => 'app\modules\user\UserModule',
        ],
    ],

 'components' => [
        'authManager' => [
            'class' => 'yii\rbac\DbManager',
        ],
        'user' => [
            'identityClass' => 'app\modules\user\components\UserIdentity',
            'enableAutoLogin' => true,
        ],
    ]

  use app\modules\user\components\RootController;

class  CustomController extends RootController {
}