PHP Mojang API 1.5

A easy-to-use PHP class for accessing official Mojang's API

  1. Update for PHP 7.2

    MTC
    Remove deprecated message (regarding each() function) since PHP 7.2
    E1t1h1a1n likes this.
  2. Fix players head

    MTC
    Update if you have any issue with players head, else this isn't required.
  3. Now an empty skin returns null

    MTC
    While fetching skin, if user exists but hasn't a skin, it returns null.
    If an error happens, it still returns false.
    Also fix method MojangAPI::isAlex($uuid)
    LeVence likes this.
  4. Added server query and ping methods

    MTC
    Query or ping a Minecraft server to retrieve its players count
    - Query: MojangAPI::query($address, $port)
    - Ping: MojangAPI::.ping($address, $port)
  5. Added authentification method

    MTC
    Authenticate a Minecraft/Mojang account and retrieve his UUID and username
    - Usage: MojangAPI::authenticate($id, $password)
    - Warning After a few fails, Mojang server will deny all requests !