sandfoxme/minecraft-query

This package is abandoned and no longer maintained. No replacement package was suggested.

A PHP class for checking the status of an enabled Minecraft server

1.0.2 2017-12-10 05:47 UTC

README

This library is not maintained. Please use some supported library like this one: https://github.com/xPaw/PHP-Minecraft-Query

A PHP library for checking the status of an enabled Minecraft server ported from python https://github.com/Dinnerbone/mcstatus

Installation

Add the following code to your composer file.

{
    "require": {
        "sandfoxme/minecraft-query": "^1.0.2"
    }
}

NB: 1.0.0 and 1.0.1 used the name sandfox-im/minecraft-query and namespace SandFoxIM\Minecraft

Usage

<?php

$minecraft = new \SandFoxMe\Minecraft\ServerQuery($argv[1], $argv[2], 2);

echo "Basic info:\n";
var_export($minecraft->getStatus());

echo "Full info:\n";
var_export($minecraft->getRules());