1
0
Fork 0
A PHP class for checking the status of an enabled Minecraft server
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
Anton Smirnov ec0b01e9bc Update readme accordingly
(cherry picked from commit 5098937263)
3 years ago
classes update email 7 years ago
example Fix incorrect Composer usage in example 9 years ago
.gitignore Initial rewrite from python + motd cleaning 9 years ago
README.md Update readme accordingly 3 years ago
composer.json update email 7 years ago

README.md

Minecraft Server Query

Code Climate

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": {
        "sandfox-im/bencode": "^1.0"
    }
}

Usage

<?php

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

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

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