src/Password.php
/**
     * Generate password.
     *
     * generates user-friendly random password containing at least one lower case letter, one uppercase letter and one
     * digit. The remaining characters in the password are chosen at random from those three sets
     *
     * @param int $length
     *
     * @return string
     */
Generate password.
generates user-friendly random password containing at least one lower case letter, one uppercase letter and one
digit. The remaining characters in the password are chosen at random from those three sets

@param int $length

@return string
Generate password . generates user - friendly random password containing at least one lower case letter one uppercase letter and one digit . The remaining characters in the password are chosen at random from those three sets @param int $length @return string
public static function generate(int $length): string
    {
        $chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_-=+;:,.?";
        return substr(str_shuffle($chars), 0, $length);
    }
public static function generate ( int $ length ) : string { $ chars = " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_-=+;:,.? " ; return substr ( str_shuffle ( $ chars ) , 0 , $ length ) ; }
Generate password.
Generate password .