PHPackages                             lordrazen/minecraft-uuid - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. lordrazen/minecraft-uuid

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

lordrazen/minecraft-uuid
========================

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

1.0.8(4mo ago)1135GPL-3.0-or-laterPHPPHP &gt;=8.0

Since Mar 30Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/LordRazen/minecraft-uuid)[ Packagist](https://packagist.org/packages/lordrazen/minecraft-uuid)[ Docs](https://github.com/LordRazen/minecraft-uuid)[ RSS](/packages/lordrazen-minecraft-uuid/feed)WikiDiscussions main Synced today

READMEChangelog (9)Dependencies (2)Versions (10)Used By (0)

Minecraft UUID
==============

[](#minecraft-uuid)

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](https://minecraft.fandom.com/wiki/Universally_unique_identifier)

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

[](#installation)

`composer require lordrazen/minecraft-uuid`

How to use this class to convert UUIDs
--------------------------------------

[](#how-to-use-this-class-to-convert-uuids)

Create a new UUID object (you can pass any valid UUID form to the constructor):
`$uuid = new UUID("ea3bc3ec-7051-4efc-87f9-68635c9b473a");`

Generate a new, random UUID:
`$uuid = new UUID();`

UUID Formats
------------

[](#uuid-formats)

Regular UUIDs (Hyphenated Hexadecimal):
`ea3bc3ec-7051-4efc-87f9-68635c9b473a`

Trimmed UUIDs (Hexadecimal):
`ea3bc3ec70514efc87f968635c9b473a`

UUIDs as Integer Arrays (Int-Array):
`[I;-365181972,1884376828,-2013697949,1553680186]`

Minecraft UUID Formats
----------------------

[](#minecraft-uuid-formats)

Uuid:
`ea3c1edf-80cb-8efc-87f9-68635c9b473a`

UuidTrimmed:
`ea3c1edf80cb8efc87f968635c9b473a`

UuidInt:
`[I;-365158689,-2134143236,-2013697949,1553680186]`

UuidInt2:
`[-365158689,-2134143236,-2013697949,1553680186]`

UUIDMost (Deprecated with 1.16):
`-1568344624944410884L`

UUIDLeast (Deprecated with 1.16):
`-8648766833423595718L`

Return the UUID Formats
-----------------------

[](#return-the-uuid-formats)

```
$uuid->getUuid();
$uuid->getUuidTrimmed();
$uuid->getUuidInt();
$uuid->getUuidInt2();

```

---

[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

41

—

FairBetter than 87% of packages

Maintenance74

Regular maintenance activity

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~176 days

Recently: every ~290 days

Total

9

Last Release

148d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

uuidminecraftHeads

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lordrazen-minecraft-uuid/health.svg)

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

###  Alternatives

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

23.9k69.5k](/packages/grumpydictator-firefly-iii)[pocketmine/pocketmine-mp

A server software for Minecraft: Bedrock Edition written in PHP

3.5k78.3k89](/packages/pocketmine-pocketmine-mp)[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

5.1k5.2k](/packages/shlinkio-shlink)[markocupic/calendar-event-booking-bundle

Contao Calendar Event Booking Bundle

135.2k1](/packages/markocupic-calendar-event-booking-bundle)[mynaparrot/plugnmeet-sdk

plugNmeet PHP SDK

102.8k](/packages/mynaparrot-plugnmeet-sdk)

PHPackages © 2026

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