PHP code example of p2made / yii2-p2y2-users

1. Go to this page and download the library: Download p2made/yii2-p2y2-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/ */

    

p2made / yii2-p2y2-users example snippets


	php composer.phar 

	...
	'p2m' => [
		...
		'users' => [
			'il' => true,
			'useUsername' => true,
			'loginEmail' => true,
			'loginUsername' => true,
			'loginDuration' => 2551443, // one mean lunar month
			'emailConfirmation' => true,
			'emailChangeConfirmation' => true,
			'loginRedirect' => null,
			'logoutRedirect' => null,
			'resetExpireTime' => '2 days',
			'loginExpireTime' => '15 minutes',
			'usersEmailViewPath' => '@user/mail',
			'usersForceTranslation' => false,
			'usersModelClasses' => [],
		],
	],