Skip to content

sbolch/unique-hash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UniqueHash

Generates a random unique hash.

Installation

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

$ composer require sbolch/unique-hash

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.

Usage

$hash = \sbolch\UniqueHash\HashGenerator::get();      // random hash with length of 32 characters
$hash = \sbolch\UniqueHash\HashGenerator::get(12);	// random hash with length of 12 characters