maymeow/tiny-id

Shortener UUID sortener

dev-main 2025-03-15 19:14 UTC

This package is auto-updated.

Last update: 2025-03-15 19:18:00 UTC


README

Shortener for UID.

You can select base2 to base62. If you want only use numbers and small letters select base36.

Example

$encoded = \Maymeow\TinyID\UuidShortener::encode($uid):
$uid = \Maymeow\TinyID\UuidShortener::decode($encoded):

## change base
$encoded = \Maymeow\TinyID\UuidShortener::encode($uid, 36):
$uid = \Maymeow\TinyID\UuidShortener::decode($encoded, 36):