nokitakaze/randomstring

Random string generating


Keywords
random
License
Apache-2.0

Documentation

Generating random strings

Current status

General

Build Status Scrutinizer Code Quality Code Coverage

HHVM Version

Build Status Scrutinizer Code Quality Code Coverage

Usage

At first

composer require nokitakaze/randomstring

And then

require_once 'vendor/autoload.php';
use \NokitaKaze\RandomString\RandomString;

$random_string1 = new RandomString::generate(10);
$random_string2 = new RandomString::generate(10, 
    RandomString::INCLUDE_NUMERIC | RandomString::INCLUDE_UPPER_LETTERS);