PHPackages                             juggl/minecraft - 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. [API Development](/categories/api)
4. /
5. juggl/minecraft

Abandoned → [sven/minecraft-php](/?search=sven%2Fminecraft-php)ArchivedLibrary[API Development](/categories/api)

juggl/minecraft
===============

A fluent wrapper around Minecraft's API.

1.0.0(10y ago)293MITPHPPHP &gt;=5.3.0

Since Oct 3Pushed 10y agoCompare

[ Source](https://github.com/Jugglio/Minecraft)[ Packagist](https://packagist.org/packages/juggl/minecraft)[ Docs](https://github.com/svenluijten/Minecraft)[ RSS](/packages/juggl-minecraft/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

> THIS VERSION IS DEPRECATED! PLEASE USE [sven/minecraft-php](https://github.com/svenluijten/minecraft-php) INSTEAD.

Minecraft API
=============

[](#minecraft-api)

[![Latest Version on Packagist](https://camo.githubusercontent.com/935ff2ff2ca0a8dc3677c4dab9fa13802233df7b2c940d50f27fe83ac7a9cda8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a7567676c2f6d696e6563726166742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/juggl/minecraft)[![Total Downloads](https://camo.githubusercontent.com/5906ae1569105a96c89018619bee28f096291310defbac9ed984f2597eb6deb5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a7567676c2f6d696e6563726166742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/juggl/minecraft)[![Software License](https://camo.githubusercontent.com/6c711032aff1ca0eb6b211aa6cb3649ce7fd64a7714e1181d4bb457f9680e7cf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

This is a simple package providing you with all the tools to quickstart development on that Minecraft site you've been craving. Retrieve UUIDs based on usernames or the other way around with a simple and human-readable API.

Install
-------

[](#install)

Via [composer](http://getcomposer.org):

```
$ composer require juggl/minecraft
```

If you're using the [Laravel](http://laravel.com) framework, you can add the `MinecraftServiceProvider` to your `providers` array:

```
// config/app.php
'providers' => [
    ...
    Juggl\Minecraft\MinecraftServiceProvider::class,
    ...
];
```

You may also add the `Minecraft` facade to the `aliases` array to use the facade:

```
// config/app.php
'aliases' => [
    ...
    'Minecraft' => Juggl\Minecraft\Facades\Minecraft::class,
    ...
];
```

Usage
-----

[](#usage)

```
$minecraft = new Juggl\Minecraft\Minecraft;

// Retrieve UUID (without dashes) based on the username provided.
$minecraft->getUuidFromName($username);

// Supply an optional UNIX timestamp to get the UUID of the user who owned that
// username at the time.
$minecraft->getUuidFromName($username, time() - (365 * 24 * 60 * 60));

// Get array of names the user has played as.
$minecraft->getNameHistory($uuid);

// Extract current username from UUID provided.
$minecraft->getNameFromUuid($uuid);

// Get array of objects with info about each user (username & UUID).
$minecraft->getUuidsFromNames(['Notch', 'jeb_', 'Dinnerbone']);
```

If you specified the alias in `config/app.php`, you can use the facade:

```
Minecraft::getUuidFromName($username);
```

Of course, all other methods can also be accessed this way.

Rate limiting
-------------

[](#rate-limiting)

Mojang has some rate limiting in place so you are expected to cache the results. For everything in this package, the limit is **600 requests every 10 minutes**. Keep in mind Mojang might change this at any time.

Credits
-------

[](#credits)

This is simply a wrapper around [Mojang](https://mojang.com)'s API, beautifully (yet unofficially) documented at [http://wiki.vg/Mojang\_API](http://wiki.vg/Mojang_API).

License
-------

[](#license)

`Juggl\Minecraft` is licenced under the MIT License (MIT). Please see the [license file](LICENSE.md) for more information.

###  Health Score

27

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3823d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6682e025b83b7a93b4d43c5c9b0b2245d790d72352758c47b81ba14858f45a8a?d=identicon)[svenluijten](/maintainers/svenluijten)

---

Top Contributors

[![svenluijten](https://avatars.githubusercontent.com/u/11269635?v=4)](https://github.com/svenluijten "svenluijten (14 commits)")

---

Tags

apiminecraftMojang

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[ovac/idoc

Generate beautiful API documentation from your Laravel application

184476.0k2](/packages/ovac-idoc)[navarr/minecraft-profile

Minecraft Profile API

241.5k](/packages/navarr-minecraft-profile)

PHPackages © 2026

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