An open API service indexing awesome lists of open source software.

https://github.com/frago9876543210/mc-protocols

RCON and Query clients written in PHP.
https://github.com/frago9876543210/mc-protocols

minecraft php php-library php7 query rcon

Last synced: 11 months ago
JSON representation

RCON and Query clients written in PHP.

Awesome Lists containing this project

README

          

# MC-Protocols

## Install
The recommended way to install this is the composer.
```json
{
"require": {
"pocketmine/binaryutils": "^0.1.0",
"frago9876543210/mc-protocols": "dev-master"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/pmmp/BinaryUtils"
},
{
"type": "vcs",
"url": "https://github.com/Frago9876543210/MC-Protocols"
}
]
}
```

## Examples

### Query
```php
getResult();
print_r($result);
}catch(Exception $e){
echo $e->getMessage();
}
```

### RCON
```php
executeCommand("list");
echo $rcon->getOutput();
}catch(Exception $e){
echo $e->getMessage();
}
```