scai/php-webrcon

PHP library to send & receive commands from rust server based on websocket client.

3.0 2023-01-28 09:37 UTC

README

Latest Version on Packagist Tests Total Downloads

PHP library to send & receive commands from rust server based on websocket client.

Installation

You can install the package via composer:

composer require scai/php-webrcon

Usage

$rcon = new Scai\WebRcon\WebRconClass();
$rcon->connect('IP', RCON_PORT, 'RCON_PASSWORD');
$rcon->send('serverinfo');
$data = $rcon->receive();

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.