PHP Classes

File: src/README.md

Recommend this page to a friend!
  Classes of Nanang F. Rozi   Base64 UUID Codec   src/README.md   Download  
File: src/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: 17 days ago
Size: 446 bytes
 

Contents

Class file image Download

Base64UUIDCodec

Encode your UUID using Base64 but in a shortened version.

Example

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

Standard Base64-encoded UUID (48 char):


Shortened Base64-encoded UUID (22 char):  

How to Use

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

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