raso/password_generator

A simple password generator

v1.0 2022-02-05 10:50 UTC

This package is not auto-updated.

Last update: 2025-07-06 23:14:24 UTC


README

Generate random password of a given level and length.

Installation

This project using composer.

$ composer require raso/password_generator

Usage

Create index.php in root of the project. Generate random password with the following code.

<?php

require_once __DIR__ . '/vendor/autoload.php';

use MyApp\Password;

//first argument is pass level (1-3), second is pass length(6-20)
$test = new Password(3, 6);

echo $test->randomPassword();

Open your porject root in your CLI and run:

$ php index.php