fabito / sof2rcon
Connects to SoF2 game servers via custom UDP RCON protocol
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/fabito/sof2rcon
This package is auto-updated.
Last update: 2025-12-04 03:39:43 UTC
README
Connect to your SoF2 game server within seconds! SoF2 uses a custom RCON protocol over UDP.
Thanks to Janno for a lot of the insight!
Usage
Use composer to install it into your project composer install astinox/sof2rcon
Initialize the server connection
use Astinox\Sof2rcon\Sof2Rcon; // RCON is optionally if you just want to read status/info lists from servers $sof2rcon = new Sof2rcon($ip, $port = 20100, $rcon = null); // Print the server status (hostname, gametype, scorelimit, ...) $status = $sof2rcon->status(); // Get a list of current players $players = $sof2rcon->players(); // Run any RCON command $sof2rcon->rcon('map mp_shop');
Security Vulnerabilities
If you discover a security vulnerability within Sof2RCON, please email me at fabian@fabito.media!
License
SoF2RCON is open source software licensed under the MIT license.