PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Nanang F. Rozi   Base64 UUID Codec   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Base64 UUID Codec
Encode and decode a UUID using base64 encoding
Author: By
Last change:
Date: 1 month ago
Size: 461 bytes
 

Contents

Class file image Download

Base64UUIDCodec

Encode your UUID to a Base64-encoded string but in a shortened version.

Example

UUID = 0ca50e59-bcf4-4627-9054-ab8e4917e71b

Standard Base64-encoded string (48 char):


Shortened Base64-encoded string (22 char):  

Usage

$uuid = '0ca50e59-bcf4-4627-9054-ab8e4917e71b';

echo  FrosyaLabs\Utils\Codec\Base64Uuid\Base64UUIDCodec::encode($uuid);