1
0
Fork 0

Update readme accordingly

(cherry picked from commit 5098937263fe4deb547612e1b5731e93955b6b2c)
master
Anton Smirnov 2017-12-10 08:12:55 +02:00
parent 2c827ac828
commit ec0b01e9bc
1 changed files with 16 additions and 4 deletions

View File

@ -1,15 +1,27 @@
Minecraft Server Query
======================
# Minecraft Server Query
[![Code Climate](https://img.shields.io/codeclimate/maintainability/sandfoxme/minecraft-query.svg?maxAge=2592000)](https://codeclimate.com/github/sandfoxme/minecraft-query)
A PHP library for checking the status of an enabled Minecraft server ported from python
[https://github.com/Dinnerbone/mcstatus](https://github.com/Dinnerbone/mcstatus)
Usage
-----
## Installation
Add the following code to your composer file.
```json
{
"require": {
"sandfox-im/bencode": "^1.0"
}
}
```
## Usage
```php
<?php
$minecraft = new \SandFoxIM\Minecraft\ServerQuery($argv[1], $argv[2], 2);
echo "Basic info:\n";