2017 © Pedro Peláez
 

library randompassword

Simple Random Password Generate Class

image

rlvendramini/randompassword

Simple Random Password Generate Class

  • Wednesday, June 21, 2017
  • by rlvendramini
  • Repository
  • 0 Watchers
  • 3 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Random Password Generator

Simple PHP static class to generate random passwords, (*1)

How does it work?

You can simple load the class and call the generate method to get your random password. If you want more options, you can customize your password's length and characters's types., (*2)

Usage

Install

$ composer require rlvendramini/random-password

Setup

It's very simple:, (*3)

Require the autoload composer's generated class..., (*4)

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

...and then generate a password!, (*5)

$password = RandomPassword::generate();

Set password length

Choose the new password's length giving it as the generate function's first parameter, (*6)

$password = RandomPassword::generate(30);

If you dont't, default length is 20., (*7)

Set characters types

Choose your prefered characters types from the following options: 'lowercase' : Lowercase characters, 'uppercase' : Uppercase characters, 'numbers' : Numbers, 'special' : Special characters, (*8)

and then give an array of options as generate function's second parameter, (*9)

$password = RandomPassword::generate(20, ['lowercase', 'uppercase']);

If you don't, all types are selected by default, (*10)

The Versions

21/06 2017

dev-master

9999999-dev https://github.com/rlvendramini/randompassword

Simple Random Password Generate Class

  Sources   Download

MIT

The Requires

  • php >=5.2

 

generator password random

11/11 2016

1.0.1

1.0.1.0 https://github.com/rlvendramini/randompassword

Simple Random Password Generate Class

  Sources   Download

MIT

The Requires

  • php >=5.2

 

generator password random

11/11 2016

1.0

1.0.0.0 https://github.com/rlvendramini/randompassword

Simple Random Password Generate Class

  Sources   Download

MIT

The Requires

  • php >=5.2

 

generator password random