Composer package that provides easy access to Minecraft related Mojang APIs
Go to file
2022-12-21 05:28:03 +01:00
src Introduce new skin uploading endpoints 2022-12-21 05:28:03 +01:00
tests Introduce new skin uploading endpoints 2022-12-21 05:28:03 +01:00
.gitignore
.php_cs.dist
.travis.yml Run build on PHP 7.4 2020-06-10 16:45:30 +03:00
CHANGELOG.md Introduce new skin uploading endpoints 2022-12-21 05:28:03 +01:00
composer.json Update dependencies restrictions 2020-06-10 16:42:27 +03:00
composer.lock Fix dependencies in lock file to be compatible with PHP 7.1 2020-06-10 16:57:18 +03:00
LICENSE.md
phpunit.xml
README.md

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.