A PHP Library for requests to the Mojang API or the Mojang Skinservers.
Official Minecraft Wiki about the Mojang API:
https://minecraft.fandom.com/de/wiki/Mojang_API
Installation
composer require lordrazen/mojang-api
https://packagist.org/packages/lordrazen/mojang-api
How to use this class to convert UUIDs
Get UUID from Playername:
MojangAPI::getUuidFromName('LordRazen);
Result: 8d0a41175a764b72a7dc67b555119fef
Get Value from UUID:
MojangAPI::getValueFromUUID('8d0a41175a764b72a7dc67b555119fef');
Result: ewogICJ0aW1lc3RhbXAiIDogMT...
Get All Names from UUID:
MojangAPI::getAllNamesFromUUID('8d0a41175a764b72a7dc67b555119fef);
Result: ["LordRazen"]
Check if Skinfile Exists: http://textures.minecraft.net/texture/d5c6dc2bbf51c36cfc7714585a6a5683ef2b14d47d8ff714654a893f5da622
MojangAPI::validateSkinFileExists('d5c6dc2bbf51c36cfc7714585a6a5683ef2b14d47d8ff714654a893f5da622');
Result: bool
Get Skinfile from Mojang Skin Servers:
MojangAPI::getSkinFile('d5c6dc2bbf51c36cfc7714585a6a5683ef2b14d47d8ff714654a893f5da622');
Result: GdImage
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta