Skip to content
This repository has been archived by the owner on Jul 27, 2020. It is now read-only.
/ minecraft-query Public archive

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

Notifications You must be signed in to change notification settings

arokettu/minecraft-query

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minecraft Server Query

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": {
        "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());

About

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

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages