thunderbug/tracker-quake-connection 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

thunderbug/tracker-quake-connection

Composer 安装命令:

composer require thunderbug/tracker-quake-connection

包简介

A library to retrieve information from quake master servers and game servers

README 文档

README

Total Downloads Version

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

统计信息

  • 总下载量: 17
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-07-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固