kekalainen/gamerq 问题修复 & 功能扩展

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

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

kekalainen/gamerq

最新稳定版本:3.0.0

Composer 安装命令:

composer require kekalainen/gamerq

包简介

RCON & query library for various game servers

README 文档

README

A PHP library for querying various game servers and sending RCON commands to them.

Supported games

This library should support all games that implement the Source query protocol, Source RCON protocol, GameSpy v4 / UT3 query protocol or webrcon. Not all protocol features are implemented. Below is an incomplete table of supported games.

GameRCONQuery
Garry's Mod
Minecraft
Rust

Usage examples

RCON

$rcon = new \Kekalainen\GameRQ\Rcon\SourceRcon; // Source games & Minecraft
$rcon = new \Kekalainen\GameRQ\Rcon\WebSocketRcon; // Rust

try {
    $rcon->connect($address, $port, $password);

    $response = $rcon->command('status');
    echo var_dump($response);
} catch (\Exception $exception) {
    echo $exception->getMessage();
} finally {
    $rcon->disconnect();
}

Query

$query = new \Kekalainen\GameRQ\Query\SourceQuery; // Source games
$query = new \Kekalainen\GameRQ\Query\MinecraftQuery; // Minecraft (TCP)
$query = new \Kekalainen\GameRQ\Query\GameSpy4Query; // Minecraft (UDP)

try {
    $query->connect($address, $port);

    $info = $query->info();
    echo var_dump($info);
} catch (\Exception $exception) {
    echo $exception->getMessage();
} finally {
    $query->disconnect();
}

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固