asayed / php-random-password
This is simple php function to generate random password
1.0.0
2021-04-15 13:48 UTC
Requires
- php: >=7.0
README
This is the simple php library for generating random password of a given length with complexity.
Installation
This project using composer.
$ composer require asayed/php-random-password
Arguments:
The generate function take there parameters
- Length of the password, default 10
- Number of digits should include in the password, default 1
- Number of special characters should include in the password, default 1
Usage
Generate random password.
<?php use ASayed\PasswordGenerator; $password = PasswordGenerator::generate(20, 2, 3);