1. Go to this page and download the library: Download zerig/user-manager 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/ */
$GLOBALS["user"] = new \UserManager\User();
$GLOBALS["user"]->login("zerig", "123456");
public $id => 1
public $user_type_id => 1
public $user_type_name => "admin"
public $login => "zerig"
public static $pass_len => 6; // MIN length of passwords
$GLOBALS["user"]->changePassword("123456", "666") => 0 // new password is too short
$GLOBALS["user"]->changePassword("123456", "666666") => 1
$GLOBALS["user"]->changePassword("666666", "123", "123") => 0 // new password and confirmation is too short
$GLOBALS["user"]->changePassword("666666", "123456", "123333") => 0 // new password and comfirmation is not the same