定制 fabito/sof2rcon 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

fabito/sof2rcon

Composer 安装命令:

composer require fabito/sof2rcon

包简介

Connects to SoF2 game servers via custom UDP RCON protocol

README 文档

README

Connect to your SoF2 game server within seconds! SoF2 uses a custom RCON protocol over UDP.

Thanks to Janno for a lot of the insight!

Usage

Use composer to install it into your project composer install astinox/sof2rcon

Initialize the server connection

use Astinox\Sof2rcon\Sof2Rcon;

// RCON is optionally if you just want to read status/info lists from servers
$sof2rcon = new Sof2rcon($ip, $port = 20100, $rcon = null);

// Print the server status (hostname, gametype, scorelimit, ...)
$status = $sof2rcon->status();

// Get a list of current players
$players = $sof2rcon->players();

// Run any RCON command
$sof2rcon->rcon('map mp_shop');

Security Vulnerabilities

If you discover a security vulnerability within Sof2RCON, please email me at fabian@fabito.media!

License

SoF2RCON is open source software licensed under the MIT license.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-10-04