2017 © Pedro Peláez
 

library random

image

iwalkalone/random

  • Sunday, March 19, 2017
  • by iwalkalone
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Random

It is a simple class to generate random alpha numeric strings to generate things like apikeys, passwords or recovery codes., (*1)

\iwalkalone\Random::generate($length, $type);

Allowed types are: * n: only numbers (0-9). * A: only capital letters (A-Z, except O to avoid confusion with number 0). * a: only lowercase letters (a-z, except l to avoid confusion with number 1). * An: capital letters and numbers (except letter O to avoid confusion with number 0). * an: lowercase letters and numbers (except letters i and number 1 to avoid confusions). * Aan: uppercase and lowercase letters plus numbers (except letter O and number 1)., (*2)

By default, length is 8 and type is Aan., (*3)

The Versions

19/03 2017

dev-master

9999999-dev

  Sources   Download