This package is abandoned and no longer maintained. No replacement package was suggested.

Simple Password Generator

v1.0 2019-04-20 07:38 UTC

This package is auto-updated.

Last update: 2022-09-23 14:38:45 UTC


README

Simple Password Generator

Installation

You can install the package via composer:

composer require codecoffeecreative/password

Usage

Generate a password

$password = new CodeCoffeeCreative\Password\Password();

// Generate
$password->generate();

// Setup
$password
	->setLength(8)
	->setUppercase(true)
	->setLowercasecase(false)
	->setNumber(true)
	->setSymbol(true);
$password->generate();

// Setup uppercase characters
$password->setUppercaseCharacters('ABCDEFGHIJKLMNOPQRSTUVWXYZ');
$password->generate();

// Setup lowercase characters
$password->setLowercaseCharacters('abcdefghijklmnopqrstuvwxyz');
$password->generate();

// Setup number characters
$password->setNumberCharacters('1234567890');
$password->generate();

// Setup symbol characters
$password->setSymbolCharacters(' !"#$%&\'()*+,-./:;<=>?@[\]^_`{|}~');
$password->generate();

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email wahyu@codecoffeecreative.com instead of using the issue tracker.

License

The MIT License (MIT). Please see License File for more information.