knik/g-rcon 问题修复 & 功能扩展

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

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

knik/g-rcon

最新稳定版本:0.7.0

Composer 安装命令:

composer require knik/g-rcon

包简介

RCON Library for game servers management

README 文档

README

GRcon is a PHP library for manage game servers and services using RCON protocol.

Supported protocols

  • Source (CS Global Offensive, Team Fortress 2, Black Mesa)
  • GoldSource (CS 1.6, Half-Life game servers, etc.)
  • Minecraft
  • TeamSpeak 3
  • SAMP (GTA San-Andreas Multiplayer)
  • Rust

Comming soon

  • Arma

Installation

composer require knik/g-rcon --no-dev

Examples

EasyGRcon

EasyGRcon is more simpler then GRcon

include "../vendor/autoload.php";

use Knik\GRcon\EasyGRcon;

$rcon = new EasyGRcon('source', [
    'host' => '127.0.0.1',
    'port' => 27015,
    'password' => 'rC0nPaS$word'
]);

$rcon->execute('changelevel de_dust2');
$rcon->execute('kick player');

GRcon

GRcon is more flexible and configurable

use Knik\GRcon\GRcon;
use Knik\GRcon\Protocols\SourceAdapter;

$adapter = new SourceAdapter([
    'host' => '127.0.0.1',
    'port' => 27015,
    'password' => 'rC0nPaS$word',
]);

$rcon = new GRcon($adapter);

$rcon->execute('changelevel de_dust2');
$rcon->execute('kick player');

Players manage

$rcon->kick('playername');
$rcon->ban('player');

Chat

$rcon->sendMessage('Hello players!');

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-05-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固