1. Go to this page and download the library: Download miragesoft/yii2-user 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/ */
miragesoft / yii2-user example snippets
'modules' => [
...
'user' => [
'class' => 'mirage\user\UserModule',
'userUploadDir' => '@webroot/uploads/user', //base user upload directory
'admins' => ['admin', 'mirage'], //Username for CRUD user
],
...
],