ketut/random-string

Generate random string

v1.0.2 2024-03-21 08:49 UTC

This package is auto-updated.

Last update: 2024-11-21 10:38:06 UTC


README

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();