PHP code example of piko / user-module
1. Go to this page and download the library: Download piko/user-module 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/ */
piko / user-module example snippets
[
'components' => [
// ...
'Piko\User' => [
'identityClass' => 'Piko\UserModule\Models\User',
'checkAccess' => 'Piko\UserModule\AccessChecker::checkAccess'
],
],
'modules' => [
// ...
'user' => [
'class' => 'Piko\UserModule',
'adminRole' => 'admin',
'allowUserRegistration' => true
],
],
'bootstrap' => ['user'],
]