mirror of
https://github.com/elyby/mojang-api.git
synced 2025-01-11 01:02:13 +05:30
valentinpahusko
ff6ef65a5e
Implemented security question-answer flow endpoints and statistics endpoint
(cherry picked from commit 481c984de83cf242b181882d92dae4bc66bc25d5)
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.
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.
Description
Languages
PHP
100%