Skip to content
Austin Bischoff edited this page Feb 27, 2015 · 2 revisions

#GameQ Version 3 Build Status Coverage Status Scrutinizer Code Quality License Dependency Status

GameQ is a PHP library that allows you to query multiple types of multiplayer game & voice servers at the same time.

Requirements

  • PHP 5.4.14+ - Tested in PHP 5.4, 5.5, 5.6 & HHVM
  • Bzip2 - Used for A2S Compressed responses

Installation

This method assumes you already have composer installed and working properly. Add austinb/gameq as a requirement to composer.json by using composer require austinb/gameq:3.*@stable or by manually adding the following to the composer.json file in the require section:

"austinb/gameq": "3.*@stable"

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 auto loading functionality as the Composer install.

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

Donations

If you like this project and use it a lot please feel free to donate here: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=VAU2KADATP5PU.