hodokami/palrcon 问题修复 & 功能扩展

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

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

hodokami/palrcon

Composer 安装命令:

composer require hodokami/palrcon

包简介

Simple Rcon class for php.

README 文档

README

Simple Rcon class for php.

Installation

Using Composer

This Rcon library may be installed by issuing the following command:

$ composer require hodokami/palrcon

Not Using Composer

If not using Composer, just place the Rcon.php file in your project and include it in your PHP script:

require_once('Rcon.php');

Example

For this script to work, rcon must be enabled on the server, by setting enable-rcon=true in the server's server.properties file. A password must also be set, and provided in the script.

$host = 'server.palworld.com'; // Server host name or IP
$port = 25575;                      // Port rcon is listening on
$password = 'server-admin-password'; // rcon.password setting set in server.properties
$timeout = 3;                       // How long to timeout.

use Hodokami\Rcon;

$rcon = new Rcon($host, $port, $password, $timeout);

if ($rcon->connect())
{
  $rcon->sendCommand("say Hello World!");
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2024-03-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固