Skip to content
Simple Password Generator
Branch: develop
Clone or download
Latest commit 2918535 May 1, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Add Password class Apr 20, 2019
tests Add tests Apr 20, 2019
.editorconfig Setup project Apr 20, 2019
.gitattributes Setup project Apr 20, 2019
.gitignore Setup project Apr 20, 2019
.styleci.yml Setup CI Apr 20, 2019
.travis.yml Setup CI Apr 20, 2019
CHANGELOG.md Setup project Apr 20, 2019
CONTRIBUTING.md Setup project Apr 20, 2019
LICENSE.md Setup project Apr 20, 2019
README.md Fix typo May 1, 2019
composer.json Setup project Apr 20, 2019
phpunit.xml.dist Setup project Apr 20, 2019

README.md

Password

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.

You can’t perform that action at this time.