Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2024-08-06 (2 days ago)  | | Not yet rated by the users | | Total: 12 This week: 12 | | All time: 11,359 This week: 7 |
|
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
 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.