fordbedia/php-uuid

PHP UUID Generator

1.0.0 2020-04-04 09:43 UTC

This package is auto-updated.

Last update: 2024-04-05 09:33:59 UTC


README

Installation

composer require fordbedia/php-uuid

Usage

use Security\UUID;
// Create UUID on the fly
$uuid = UUID::generate();

echo $uuid;
// Result E.g.: 43034342-4620-417e-aec2-d7e3eb90daa3
use Security\UUID;

// Create a license key
$guid = new UUID;

echo $guid->createGUID();
// Result E.g.: 912AFB38-5069-ABFB-5A48-1EF5051BB7D0


// Create a UUID key
echo (new UUID)->uuid();
// Result E.g.: 61255da2-f8b0-4709-9b45-810758a32009