raso / password_generator
A simple password generator
v1.0
2022-02-05 10:50 UTC
Requires
None
Requires (Dev)
- phpunit/phpunit: ^9
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is not auto-updated.
Last update: 2026-11-09 06:01:37 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