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(3mo ago)1133GPL-3.0-or-laterPHPPHP &gt;=8.0

Since Mar 30Pushed 3mo 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 1mo ago

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

43

—

FairBetter than 91% of packages

Maintenance82

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Recently: every ~290 days

Total

9

Last Release

96d 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 (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

[pascaldevink/shortuuid

PHP 7.4+ library that generates concise, unambiguous, URL-safe UUIDs

5951.8M15](/packages/pascaldevink-shortuuid)[mhujer/jms-serializer-uuid

Uuid serializer and deserializer for JMS Serializer library

291.2M4](/packages/mhujer-jms-serializer-uuid)[thamtech/yii2-uuid

Yii 2 UUID Helper

35347.9k7](/packages/thamtech-yii2-uuid)[your-app-rocks/eloquent-uuid

Adds support for UUID generation automatically for Models Eloquents.

6888.5k2](/packages/your-app-rocks-eloquent-uuid)[gamez/ramsey-uuid-normalizer

Symfony Normalizer and Denormalizer for ramsey/uuid

16619.1k3](/packages/gamez-ramsey-uuid-normalizer)[michalsn/codeigniter4-uuid

UUID and ULID package for CodeIgniter 4 with support for Model.

4728.7k4](/packages/michalsn-codeigniter4-uuid)

PHPackages © 2026

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