sebastan12 / random-password
Easily Generate a random password
v1.2
2022-03-27 17:08 UTC
Requires (Dev)
- phpunit/phpunit: 10.0.x-dev
This package is not auto-updated.
Last update: 2025-07-01 07:56:40 UTC
README
A random password generator
#How to Install
you can easily install the package using composer
composer require sebastan12/random-password
#Quickly generate your first password by default a password with length of 8 and it uses special characters - this can be configured
//Require Composer Autoload require_once __DIR__."/vendor/autoload.php"; use RandomPassword\RandomPassword; //How to generate a password $generator = new RandomPassword(); echo $generator->getRandomPassword();
#Configuration options random-password offers 2 configuration parameters you can pass
- the password length (int min 1)
- use special characters (bool)
//Using parameters to generate a 32 char logn password //that does not use special chars $generator = new RandomPassword(32, false); echo $generator->getRandomPassword();
#License This project uses the MIT Licence