gasjki/game-server-query

GameServerQuery - Extended PHP game server query library based on GameQ.

1.0.26 2023-10-02 12:39 UTC

README

Current version: 1.0.26

Inspiration: GameQ by AustinB

This script is an updated version of GameQ script created by AustinB. I recommend accessing his repository and give him a beer. He deserves it!

I decided to create this repository for my next project. Compared to the original script, this one is more configurable.

Good to know

At this moment, only Source games are supported by this library. I'm working on supporting all games that are currently supported by GameQ.

Requirements

  • PHP 8.0+
  • BZip2 - Used by the Source Protocol

Installation

Use the following Composer command to add your package:

composer require gasjki/game-server-query

Note: Update your package to the latest version using composer update gasjki/game-server-query.

Examples

See more examples here.

Live example

Live example: https://gamefire.ro

Exceptions

[Source]

  • 7 Days To Die - does NOT support players;
  • Atlas - does NOT support players;
  • Barotrauma - does NOT support players;
  • Battalion 1944 - does NOT support players;
  • Contagion - does NOT support players;
  • Day Z - does NOT support players / rules;
  • Empyrion Galactic Survival - does NOT support players / rules;
  • Mordhau - does NOT support players;
  • Rust - does NOT support players;
  • The Forest - does NOT support players;
  • Valheim - does NOT support players;
  • Wurn - does NOT support players;

[Other]

  • San Andreas Multiplayer - does NOT support players if # of online players is higher than 255;