qade/master-server

Master Server to GoldSrc and Source engine

0.1.0 2018-08-16 19:50 UTC

This package is not auto-updated.

Last update: 2024-04-14 02:50:03 UTC


README

This class was created to make a Master Server for the game engine to GoldSrc and Source.

Prerequisites

  • PHP version (5.4 or newer)
  • Lib php_sockets (4.3 or newer)
  • Server must allow UDP connections

Installation

The Master Server can be installed using Composer by running the following command:

composer require qade/master-server

Functions

create(string $address, int $port = 27010) Create server
close() Close server
listen() Accepts the request from the client and processes it
addServer(string $server) Add a server to the server list
addServers(array $servers) Adds a servers to the server list
clearServers() Cleaning the server list
removeServer(string $server) Remove a server to the server list