Update readme accordingly
(cherry picked from commit 5098937263fe4deb547612e1b5731e93955b6b2c)master
parent
2c827ac828
commit
ec0b01e9bc
20
README.md
20
README.md
|
@ -1,15 +1,27 @@
|
|||
Minecraft Server Query
|
||||
======================
|
||||
# Minecraft Server Query
|
||||
|
||||
[](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";
|
||||
|
|
Reference in New Issue