Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2024-08-06 (1 month ago) | | Not yet rated by the users | | Total: 33 This week: 2 | | All time: 11,049 This week: 22 |
|
Description | | Author |
This package can encode and decode a UUID using base64 encoding.
It can decode a UUID string to extract the sequence of bytes of the UUID and encode it as a string using base64 encoding.
This package can also decode a UUID string encoded using base64 encoding to get the UUID value and return a string in the UUID format. Innovation Award
August 2024
Nominee
Vote |
A UUID is an identifier that encodes a value used to represent an object uniquely.
The UUID string contains only ASCII characters to make it easier to transmit over channels that only allow readable text to be sent.
Encoding a UUID value as a string makes it longer in terms of the number of bytes than the original object identifier takes in binary format.
This package can decode a UUID string to get its binary value, thus taking fewer bytes to store.
Manuel Lemos |
| |
|
|
Innovation award
Nominee: 2x |
|
Documentation
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);
Details
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);
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.