PHPackages                             goldman40/php-rcon-minecraft - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. goldman40/php-rcon-minecraft

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

goldman40/php-rcon-minecraft
============================

Send commands from php to minecraft

43171PHP

Since Nov 13Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Goldman40/PHP-Minecraft-Rcon)[ Packagist](https://packagist.org/packages/goldman40/php-rcon-minecraft)[ RSS](/packages/goldman40-php-rcon-minecraft/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP-Minecraft-Rcon
==================

[](#php-minecraft-rcon)

Simple Rcon class for php.

Connection is established over TCP.

Available on

Examples
--------

[](#examples)

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.

```
use thedudeguy\Rcon;

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

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

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

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 64.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/928f1bf95f350a450be5dd39b8003a06953f36592d32e1a55679696e9f41248a?d=identicon)[Goldman40](/maintainers/Goldman40)

---

Top Contributors

[![Goldman40](https://avatars.githubusercontent.com/u/8544964?v=4)](https://github.com/Goldman40 "Goldman40 (9 commits)")[![thedudeguy](https://avatars.githubusercontent.com/u/926132?v=4)](https://github.com/thedudeguy "thedudeguy (5 commits)")

### Embed Badge

![Health badge](/badges/goldman40-php-rcon-minecraft/health.svg)

```
[![Health](https://phpackages.com/badges/goldman40-php-rcon-minecraft/health.svg)](https://phpackages.com/packages/goldman40-php-rcon-minecraft)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
