2017 © Pedro Peláez
 

library rcon

Simple Rcon class for php.

image

thedudeguy/rcon

Simple Rcon class for php.

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 35 Forks
  • 3 Open issues
  • 2 Versions
  • 24 % Grown

The README.md

PHP-Minecraft-Rcon

Scrutinizer Code Quality, (*1)

Simple Rcon class for php., (*2)

Installation

Using Composer

This Rcon library may be installed by issuing the following command:, (*3)

$ composer require thedudeguy/rcon

Not Using Composer

If not using Composer, just place the Rcon.php file in your project and include it in your PHP script:, (*4)

require_once('Rcon.php');

Example

For this script to work, rcon must be enabled on the server, by setting enable-rcon=true in the server's server.properties file. A password must also be set, and provided in the script., (*5)

$host = 'some.minecraftserver.com'; // Server host name or IP
$port = 25575;                      // Port rcon is listening on
$password = 'server-rcon-password'; // rcon.password setting set in server.properties
$timeout = 3;                       // How long to timeout.

use Thedudeguy\Rcon;

$rcon = new Rcon($host, $port, $password, $timeout);

if ($rcon->connect())
{
  $rcon->sendCommand("say Hello World!");
}

The Versions

22/09 2017

dev-master

9999999-dev https://github.com/thedudeguy/PHP-Minecraft-Rcon

Simple Rcon class for php.

  Sources   Download

MIT

minecraft rcon

25/05 2017

v1.0.0

1.0.0.0 https://github.com/thedudeguy/PHP-Minecraft-Rcon

Simple Rcon class for php.

  Sources   Download

MIT

minecraft rcon