You can use the str_shuffle() function to randomly shuffle a string and substr() function to select a portion of the string with a custom length to generate a password.
main.php504 chars15 linesTo include uppercase letters, you can modify the characters string to include them:
main.php65 chars2 lines
To include numbers and special characters, you can add them to the characters string as well.
gistlibby LogSnag