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.
- Host: GitHub
- URL: https://github.com/frago9876543210/mc-protocols
- Owner: Frago9876543210
- License: mit
- Created: 2018-02-23T08:32:19.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-05T10:27:51.000Z (almost 8 years ago)
- Last Synced: 2025-06-20T23:42:53.794Z (about 1 year ago)
- Topics: minecraft, php, php-library, php7, query, rcon
- Language: PHP
- Size: 8.79 KB
- Stars: 9
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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();
}
```