igniphp/uuid

2.0.0 2018-06-28 06:47 UTC

This package is not auto-updated.

Last update: 2024-11-15 20:58:29 UTC


README

Build Status

Igni\Util\UuidGenerator

RFC-compliant Universally Unique Identifiers v5 generator.

Installation

composer require igniphp/uuid

API

generate(): string

Generates uuid.

generateShort(): string

Generates shorter representation of uuid (base58 encoded).

toShort(string $string): string

Shorts uuid by packing it into base58 representation.

fromShort(string $string): string

Returns full uuid as a string from base58 representation.

validate(string $string): bool

Validates if passed string is valid uuid number.