PHP code example of maatify / admin-portal-handler
1. Go to this page and download the library: Download maatify/admin-portal-handler 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/ */
maatify / admin-portal-handler example snippets
namespace App\Assist;
use Maatify\Functions\GeneralPasswordGenerator;
class DefaultPassword
{
private static self $instance;
public static function obj(): self
{
if (empty(self::$instance)) {
self::$instance = new self();
}
return self::$instance;
}
public static function GenerateAdminDefaultPassword(): string
{
$password = GeneralPasswordGenerator::passwordGenerator(16, GeneralPasswordGenerator::allCharacters());
return $password;
}
public static function GenerateCustomerDefaultPassword(): string
{
$password = GeneralPasswordGenerator::passwordGenerator(13, GeneralPasswordGenerator::allCharacters());
return $password;
}
}