Skip to content

Convert UUID 32-character hex string into a Base32 short string and back.

License

Notifications You must be signed in to change notification settings

katteba/uuidshortener-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UUID Shortener

Latest Stable Version Build Status Maintainability License

Original by Obj-C

Convert UUID 32-character hex string into a Base32 short string and back.

Installation

composer require katteba/uuidshortener

Usage

Compressing UUID

<?php

use Katteba\UUID\UUIDShortener;

$uuid = '...';
$compressedUuid = UUIDShortener::encode($uuid);

Restore original UUID from compact representaion

<?php

use Katteba\UUID\UUIDShortener;

$compressedUuid = '...';
$uuid = UUIDShortener::decode($compressedUuid);

About

Convert UUID 32-character hex string into a Base32 short string and back.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages