thunderbug / tracker-quake-connection
A library to retrieve information from quake master servers and game servers
Installs: 17
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 2
pkg:composer/thunderbug/tracker-quake-connection
Requires (Dev)
- ext-sockets: *
- phpunit/phpunit: ^11.5.20
This package is auto-updated.
Last update: 2025-09-19 18:18:19 UTC
README
A library to interact with a call of duty, wolfenstein, ... master server and the game servers.
Usage
Master
The Master class handles the connection with the master server of a certain game. At this moment there is only 1 function within the master server function and this is retrieving a full list of gameservers currently online.
$master = new \Thunderbug\QuakeConnection\Master\Master("Master.game.com", 28910); $servers = $master->getServerList();
The returns a array with Server objects.
Gameserver
The gameserver class handles the connection to an individual gameserver.
$server = new \Thunderbug\QuakeConnection\Server\Server("192.168.1.100", 28960, "OptionalPassword");
Also you can still retrieve the arrays after doing the getstatus command.
$gameserver = $server->getPublicInformation(); $cvars = $gameserver->getCvars(); $players = $gameserver->getPlayers();
Colors are also handled by this library.
print(\Thunderbug\QuakeConnection\Server\Colors::colorize("^5Thun^6der", ColorType::DARK)); //Prints html <span> with color codes //Depending on the color of the site the color type can be light or dark print(\Thunderbug\QuakeConnection\Server\Colors::removeColors("^5Thun^6der")); //Removes all color codes
Installation
You can download the library via composer:
composer require thunderbug/tracker-quake-connection