All Projects → mgp25 → Minecraft-Server-Status

mgp25 / Minecraft-Server-Status

Licence: MIT license
Library to check minecraft server status + skins

Programming Languages

PHP
23972 projects - #3 most used programming language

dirtMinecraft Server Status

This library can be used to query Minecraft servers for some basic information and player's skin.

You will be able to retrieve:

  • Server's version
  • Number of players online
  • Server status
  • Server's description
  • Server's image
  • Mods installed in the server
  • Player's skin and face

Using: PHP-Minecraft-Query from xPaw

Examples

<?php
    require __DIR__ . '/src/MinecraftPing.php';
    require __DIR__ . '/src/MinecraftPingException.php';
    try
    {
        $Query = new MinecraftPing( 'localhost', 25565 );

        print_r( $Query->Query() );
    }
    catch( MinecraftPingException $e )
    {
        echo $e->getMessage();
    }
    finally
    {
        $Query->Close();
    }
<?php
require __DIR__ . '/src/MinecraftSkin.php';

$mc = new MinecraftSkin();
$mc->getFace('mgp25'); // image is downloaded and stored in /faces, path is returned
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].