1
0
Fork 0

Update readme accordingly

(cherry picked from commit 5098937263)
master
Anton Smirnov 5 years ago
parent 2c827ac828
commit ec0b01e9bc

@ -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";