codes50/password-generator

PHP password generator (basic, medium, complex mode)

0.1 2020-03-13 06:53 UTC

This package is auto-updated.

Last update: 2024-11-13 22:08:16 UTC


README

Latest Version Packagist Software License

Requires

  • php: >=7.1

Install

Install latest version using composer.

$ composer require codes50/password-generator

Usage

  • Multiple Usage
use Codes50\PasswordGenerator;

$password_generator = new PasswordGenerator();

echo $password_generator::Basic();
echo "\n";
echo $password_generator::Medium();
echo "\n";
echo $password_generator::Complex();
echo "\n";
echo $password_generator::Create(PasswordGenerator::MODE_BASIC);
echo "\n";
echo $password_generator::Create(PasswordGenerator::MODE_MEDIUM);
echo "\n";
echo $password_generator::Create(PasswordGenerator::MODE_COMPLEX);
echo "\n";
echo $password_generator::Medium(10);
echo "\n";
echo $password_generator::Complex(20);

print:

470036
74NZ4RLN
jbzKaYS41eZ8
S4YQSBNG
i5t8bZ8mg7Pr
236632
KQA4HZ9ZCN
kZjuwQro8Hkkkn5PtuoB