lukasss93/minecraft-tools

Minecraft Tools library for some basic API information.

1.0 2018-10-14 19:57 UTC

This package is auto-updated.

Last update: 2024-12-15 11:39:19 UTC


README

Latest Stable Version Total Downloads License PHP

Minecraft Tools library for some basic API information.

Requirements

  • PHP >= 5.6
  • Json Extension

Installation

You can install this library with composer:

composer require lukasss93/minecraft-tools

Using

<?php
	use MinecraftTools\MinecraftTools;
	
	//Show the status of Mojang Services
	print_r( MinecraftTools::serviceStatuses() );
	
	//Get UUID from username
	print_r( MinecraftTools::getUUID('Lukasss93') );
	
	//Get username from UUID
	print_r( MinecraftTools::getUsername('UUID') );
	
	//Get name history from UUID
	print_r( MinecraftTools::getNameHistory('UUID') );
	
	//Add dashes to an UUID
	print_r( MinecraftTools::formatUUID('UUID') );
	
	//Remove dashes from UUID
	print_r( MinecraftTools::minifyUUID('UUID') );
	
	//Check if string is a valid UUID, with or without dashes
	print_r( MinecraftTools::isValidUUID('UUID') );
	
?>

Changelog

All notable changes to this project will be documented here.

Recent changes

[1.0]

  • First release