PHPackages                             ely/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. ely/mojang-api

ActiveLibrary

ely/mojang-api
==============

Library for access to Mojang API.

0.2.1(5y ago)912.8k↓42.3%2[1 issues](https://github.com/elyby/mojang-api/issues)MITPHPPHP &gt;=7.1.0CI failing

Since Apr 1Pushed 3y ago2 watchersCompare

[ Source](https://github.com/elyby/mojang-api)[ Packagist](https://packagist.org/packages/ely/mojang-api)[ RSS](/packages/ely-mojang-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (4)Used By (0)

Mojang API
==========

[](#mojang-api)

This package provides easy access to the Minecraft related API of Mojang. The library is built on the top of the [Guzzle HTTP client](https://github.com/guzzle/guzzle), has custom errors handler and automatic retry in case of problems with Mojang.

[![Latest Version on Packagist](https://camo.githubusercontent.com/40c2da3cdcb0a4de3bd3ddf1c2d4ba6ba79f1c8ffe0a586400134ddad28df6c1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656c792f6d6f6a616e672d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ely/mojang-api)[![Total Downloads](https://camo.githubusercontent.com/011d18f3eef6b07686b4c6edaa489f6754b6b9b4b0028c6def0b35282f5edc5a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656c792f6d6f6a616e672d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ely/mojang-api/stats)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/1b0fe0fec3f077bb2c52c371d95e933b0df496d2e88c172eed47f6c7baa40bdd/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f656c7962792f6d6f6a616e672d6170692f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/elyby/mojang-api)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/562ae62f4bfb754b21f156ceb52836b061bc0cd142f2734028a31d44053649c4/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f656c7962792f6d6f6a616e672d6170692e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/elyby/mojang-api)[![Code Coverage](https://camo.githubusercontent.com/19cd6b42d3003ef23d97c4fdf9b7ae36a85065ae7e358ea152e873f7cda414f8/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f656c7962792f6d6f6a616e672d6170692e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/elyby/mojang-api)

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

[](#installation)

To install, use composer:

```
composer require ely/mojang-api
```

Usage
-----

[](#usage)

To start using this library just create a new `Api` class instance and call the necessary endpoint:

```
