PHPackages                             lordrazen/mojang-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. lordrazen/mojang-api

ActiveLibrary

lordrazen/mojang-api
====================

A PHP Library for requests to the Mojang API.

1.0.3(2y ago)131GPL-3.0-or-laterPHP

Since Dec 3Pushed 2y ago1 watchersCompare

[ Source](https://github.com/LordRazen/mojang-api)[ Packagist](https://packagist.org/packages/lordrazen/mojang-api)[ Docs](https://github.com/LordRazen/mojang-api)[ RSS](/packages/lordrazen-mojang-api/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

mojang-api
==========

[](#mojang-api)

A PHP Library for requests to the Mojang API or the Mojang Skinservers.
Official Minecraft Wiki about the API: [https://minecraft.fandom.com/de/wiki/Mojang\_API](https://minecraft.fandom.com/de/wiki/Mojang_API)

Installation
------------

[](#installation)

`composer require lordrazen/mojang-api`

Use the MojangAPI:
------------------

[](#use-the-mojangapi)

Get UUID from Playername:
`MojangAPI::getUuidFromName('LordRazen);`
Result: 8d0a41175a764b72a7dc67b555119fef

Get Value from UUID:
`MojangAPI::getValueFromUUID('8d0a41175a764b72a7dc67b555119fef');`
Result: ewogICJ0aW1lc3RhbXAiIDogMT...

Check if Skinfile Exists:
`MojangAPI::validateSkinFileExists('d5c6dc2bbf51c36cfc7714585a6a5683ef2b14d47d8ff714654a893f5da622');`
Result: bool

Get Skinfile from Mojang Skin Servers:
`MojangAPI::getSkinFile('d5c6dc2bbf51c36cfc7714585a6a5683ef2b14d47d8ff714654a893f5da622');`
Result: GdImage

Former Features
---------------

[](#former-features)

Get All Names from UUID (deprecated since Mojang stopped the API support): `MojangAPI::getAllNamesFromUUID('8d0a41175a764b72a7dc67b555119fef);`
Result: \["LordRazen"\]

---

[www.minecraft-heads.com](http://www.minecraft-heads.com)[![Minecraft Heads Banner](https://camo.githubusercontent.com/324933e81d15ab1dd9b452e24527b07b3eb5aa06155723880deedf1e7832c282/68747470733a2f2f696d616765732e6d696e6563726166742d68656164732e636f6d2f62616e6e6572732f6d696e6563726166742d68656164735f68616c6662616e6e65725f3233347836302e706e67)](https://camo.githubusercontent.com/324933e81d15ab1dd9b452e24527b07b3eb5aa06155723880deedf1e7832c282/68747470733a2f2f696d616765732e6d696e6563726166742d68656164732e636f6d2f62616e6e6572732f6d696e6563726166742d68656164735f68616c6662616e6e65725f3233347836302e706e67)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~189 days

Total

4

Last Release

1058d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f55a898615f58dd74fe71e8bfc7734d419240ab06bfc91ebff8256016fcccc1d?d=identicon)[LordRazen](/maintainers/LordRazen)

---

Top Contributors

[![LordRazen](https://avatars.githubusercontent.com/u/9381368?v=4)](https://github.com/LordRazen "LordRazen (16 commits)")

---

Tags

minecraftMojangMojang API

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lordrazen-mojang-api/health.svg)

```
[![Health](https://phpackages.com/badges/lordrazen-mojang-api/health.svg)](https://phpackages.com/packages/lordrazen-mojang-api)
```

###  Alternatives

[xpaw/php-source-query-class

PHP library to query and send RCON commands to servers based on "Source Engine Query" protocol

610189.9k7](/packages/xpaw-php-source-query-class)[xpaw/php-minecraft-query

PHP library to query Minecraft servers

74299.8k3](/packages/xpaw-php-minecraft-query)[thedudeguy/rcon

Simple Rcon class for php.

16259.4k1](/packages/thedudeguy-rcon)[spirit55555/php-minecraft

Useful PHP classes for Minecraft

6823.6k](/packages/spirit55555-php-minecraft)[navarr/minecraft-profile

Minecraft Profile API

241.5k](/packages/navarr-minecraft-profile)[d3strukt0r/votifier-client

Simple Tool to send vote request to a server which has the Votifier plugin.

1623.5k](/packages/d3strukt0r-votifier-client)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
