industryweb / password-random
Generates a random password using lowercase, uppercase, numbers, and symbols.
dev-master
2019-11-03 05:29 UTC
Requires
- php: >=5.4
This package is auto-updated.
Last update: 2025-06-29 00:52:55 UTC
README
Generates a random password using lowercase, uppercase, numbers, and symbols.
Requirements:
php 5.4+
Installation:
You can install the package via composer:
composer require industryweb/password-generate
Usage:
Use the setters.
use IndustryWeb\PasswordRandom; $random = new PasswordRandom(); // Set our min and max then generate. $password = $random->length(16, 18) ->lower(2) ->upper(2) ->number(2) ->symbol(2) ->generate(); // Display password. echo $password . '<br><br>'; // Display character count. echo 'Total Characters: '.strlen($password);
License:
(MIT) License.
Please see License File for more information.