Minecraft UUID icon

Minecraft UUID -----

A PHP Library to convert between three of the different Minecraft UUID-Formats.



A PHP Library to convert between three of the different Minecraft UUID-Formats.

Official Minecraft Wiki about UUIDs:
https://minecraft.fandom.com/wiki/Universally_unique_identifier

Installation
composer require lordrazen/minecraft-uuid-converter

https://packagist.org/packages/lordrazen/minecraft-uuid-converter

UUID Formats
Regular UUIDs (Hyphenated Hexadecimal):
Code (Text):
ea3bc3ec-7051-4efc-87f9-68635c9b473a
Trimmed UUIDs (Hexadecimal):
Code (Text):
ea3bc3ec70514efc87f968635c9b473a
UUIDs as Integer Arrays (Int-Array):
Code (Text):
[I;-365181972,1884376828,-2013697949,1553680186]

How to use this class to convert UUIDs
Create a new UUID object:
Code (Text):
$uuid = new UUID();
Read a given UUID String (String can have any format from above):
Code (Text):
$uuid->read($input);
Generate a new, random UUID:
Code (Text):
$uuid->generateNew();
Return the converted UUIDs:
Code (Text):
$uuid->getUuid();
$uuid->getUuidTrimmed();
$uuid->getUuidInt();

www.minecraft-heads.com
[​IMG]
Resource Information
Author:
----------
Total Downloads: 131
First Release: Jun 27, 2021
Last Update: Jun 27, 2021
Category: ---------------
All-Time Rating:
0 ratings
Find more info at minecraft-heads.com...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings