katteba / uuidshortener
Convert UUID 32-character hex string into a Base32 short string and back.
Installs: 20 845
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- christian-riesen/base32: ^1.3
Requires (Dev)
- phpunit/phpunit: 5.5.*
README
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);