gries/rcon

PHP RCON Client

Maintainers

Details

github.com/gries/rcon

Source

Issues

Installs: 734

Dependents: 1

Suggesters: 0

Security: 0

Stars: 7

Watchers: 4

Forks: 0

Open Issues: 0

pkg:composer/gries/rcon

0.0.3 2015-06-07 11:23 UTC

This package is auto-updated.

Last update: 2025-09-17 00:00:30 UTC


README

This is a simple RCON-Client for php.

SensioLabsInsight

Build Status Code Quality

Installation

RCON can be installed via. Composer:

composer require "gries/rcon"

Usage

use gries\Rcon\MessengerFactory;
use gries\Rcon\Messenger;

require_once __DIR__.'/vendor/autoload.php';

// setup the messenger
$messenger = MessengerFactory::create('example.com', 25575, 'mypass');

// send a simple message
$response = $messenger->send('list');
echo $response; // a,b,c

// send a message and parse the command via. a callable
$response = $messenger->send('list', function($arg) {
    return explode(',', $arg);
});
print_r($response); // ['a', 'b', 'c']

Running the tests

vendor/bin/phpspec run

Contribute!

Feel free to give me feedback/feature-request/bug-reports via. github issues. Or just send me a pull-request :)

Author

License

For the full copyright and license information, please view the LICENSE file that was distributed with this source code.