sbolch/unique-hash

Generates a random unique hash.

Fund package maintenance!
sbolch
Ko Fi
Buy Me A Coffee

Installs: 26

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:package

pkg:composer/sbolch/unique-hash

v3.1 2022-11-06 21:48 UTC

This package is auto-updated.

Last update: 2025-09-22 23:26:43 UTC


README

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