Composer package that provides easy access to Minecraft related Mojang APIs
Go to file
valentinpahusko ff6ef65a5e Implemented security question-answer flow endpoints and statistics endpoint
(cherry picked from commit 481c984de83cf242b181882d92dae4bc66bc25d5)
2020-01-14 17:30:30 +03:00
src Implemented security question-answer flow endpoints and statistics endpoint 2020-01-14 17:30:30 +03:00
tests Implemented security question-answer flow endpoints and statistics endpoint 2020-01-14 17:30:30 +03:00
.gitignore Init 2019-04-01 16:04:08 +02:00
.php_cs.dist Init 2019-04-01 16:04:08 +02:00
.travis.yml Init 2019-04-01 16:04:08 +02:00
CHANGELOG.md Prepare 0.2.0 release 2019-05-07 11:31:39 +03:00
composer.json Implemented Playernames to UUIDs endpoint 2019-04-07 22:38:00 +02:00
composer.lock Implemented Playernames to UUIDs endpoint 2019-04-07 22:38:00 +02:00
LICENSE.md Init 2019-04-01 16:04:08 +02:00
phpunit.xml Fix phpunit schema path 2019-04-07 01:09:08 +02:00
README.md Prepare 0.2.0 release 2019-05-07 11:31:39 +03:00

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, has custom errors handler and automatic retry in case of problems with Mojang.

Latest Version on Packagist Total Downloads Software License Build Status Scrutinizer Code Quality Code Coverage

Installation

To install, use composer:

composer require ely/mojang-api

Usage

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

<?php
$api = new \Ely\Mojang\Api();
$response = $api->usernameToUUID('erickskrauch');
echo $response->getId();

Testing

$ ./vendor/bin/phpunit

Contributing

Please see CONTRIBUTING for details.

Credits

This package was designed and developed within the Ely.by project team. We also thank all the contributors for their help.

License

The MIT License (MIT). Please see License File for more information.