Skip to content

ketut-angga/random-string

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

random-string

Installation

composer require ketut/random-string

How to use

use Ketut\RandomString\Random;

$randomString = (new Random)
  ->length(32)
  ->lowercase()
  ->uppercase()
  ->numeric()
  ->generate();
 
$arrayRandomString = (new Random)
  ->length(32)
  ->block(5)
  ->lowercase()
  ->uppercase()
  ->numeric()
  ->generateBlock();