industryweb / password-random
Generates a random password using lowercase, uppercase, numbers, and symbols.
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/industryweb/password-random
Requires
- php: >=5.4
This package is auto-updated.
Last update: 2025-12-29 02:09:08 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.