vovsi/minecraft-rcon
最新稳定版本:1.0.4
Composer 安装命令:
composer require vovsi/minecraft-rcon
包简介
Library with RCON commands for Minecraft server.
关键字:
README 文档
README
A lightweight PHP client around an existing Minecraft RCON client, enriched with high-level resource classes for common in-game actions.
This package is designed to provide a clean, structured interface for executing RCON commands on a Minecraft server using PHP.
Requirements
This package requires:
- PHP 8.4 or higher
- Minecraft server with RCON enabled
- Composer
Installation
Install via Composer:
composer require vovsi/minecraft-rcon
Example Usage
use Vovsi\MinecraftRcon\Rcon; use Vovsi\MinecraftRcon\resources\ItemResource; use Vovsi\MinecraftRcon\dto\item\GiveDto; $rcon = new Rcon('127.0.0.1', 25575, 'supersecret'); $itemResource = new ItemResource($rcon); $dto = new GiveDto( username: 'Notch', item: 'diamond', amount: 64 ); $itemResource->give($dto);
Resource Structure
All logic is grouped by resources (src/resources), each encapsulating commands related to a specific domain (items, players, server control, etc.).
License
MIT – drop some diamonds, not licenses 💎
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-07-06