krymosoftware / gameq
A maintained fork of the famous PHP Gameserver Status Query Library GameQ by Austinb
Requires
- php: >=8.1
- ext-bz2: *
- ext-simplexml: *
- ext-xml: *
Requires (Dev)
- ext-curl: *
- corneltek/getoptionkit: ~2
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^1.12
- phpstan/phpstan-deprecation-rules: ^1.2
- phpstan/phpstan-phpunit: ^1.4
- phpunit/php-invoker: *
- phpunit/phpunit: ^9.0
- squizlabs/php_codesniffer: 3.*@stable
README
GameQ is a PHP library that allows you to query multiple types of multiplayer game & voice servers at the same time.
This repository is a maintained fork of Austinb/GameQ by Krymo Software. While we don't plan to add new games for now, we'll ensure compatibility with the latest PHP versions and fix issues as they arise.
Requirements
Installation
Composer
This method assumes you already have composer installed and working properly. Add krymosoftware/gameq
as a requirement to composer.json by using composer require krymosoftware/gameq:^4.0.0
or by manually adding the following to the composer.json file in the require section:
"krymosoftware/gameq": "^4.0.0"
Update your packages with composer update
or install with composer install
.
Standalone Library
Download the latest version of the library and unpack it into your project. Add the following to your bootstrap file:
require_once('/path/to/src/GameQ/Autoloader.php');
The Autoloader.php
file provides the same autoloading functionality as the Composer installation.
Example
$GameQ = new \GameQ\GameQ(); $GameQ->addServer([ 'type' => 'css', 'host' => '127.0.0.1:27015', ]); $results = $GameQ->process();
Need more? See Examples.
Contributing
Please see CONTRIBUTING for details.
License
See LICENSE for more information
Third Party Provider
- dev.tkirch.wsc.gameq - Provides this library as a plugin to WoltLab Suite™ Core.