2017 © Pedro Peláez
 

library random-string

Class for generating random strings with defined parameters

image

didatus/random-string

Class for generating random strings with defined parameters

  • Wednesday, April 4, 2018
  • by didatus
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

RandomString

A simple class for generating random strings., (*1)

Latest Stable Version License Build Status Scrutinizer Code Quality Code Coverage, (*2)

Create RandomString Instance

use Didatus\RandomString\RandomString;
$randomString = new RandomString();

Create RandomString Instance with own character pool and with excluding characters

use Didatus\RandomString\RandomString;
$randomString = new RandomString('0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ', '1IO0');

Excluding characters can be helpful for generating readable coupons (without confusing 0 and O for example)., (*3)

Generate a single random string

$randomString = new RandomString();
$string = $randomString->getString(10);

Generate a single random alpha numeric string excluding confusing characters

$randomString = new RandomString('0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ', '1IO0');
$string = $randomString->getString(10);

generate a list of five random tokens

$randomString = new RandomString();
$strings = $randomString->getListOfString(10, 5);

C8H5, (*4)

The Versions

04/04 2018

dev-master

9999999-dev

Class for generating random strings with defined parameters

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

by Christian Hammer

30/09 2017

1.1.1

1.1.1.0

Class for generating random strings with defined parameters

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

by Christian Hammer

29/09 2017

1.1.0

1.1.0.0

Class for generating random strings with defined parameters

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

by Christian Hammer

29/09 2017

1.0.0

1.0.0.0

Class for generating random strings with defined parameters

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

by Christian Hammer