PHPackages                             dev-lancer/minecraft-rcon - 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. [DevOps &amp; Deployment](/categories/devops)
4. /
5. dev-lancer/minecraft-rcon

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

dev-lancer/minecraft-rcon
=========================

PHP library to request RCON for Minecraft servers

v1.0(1y ago)11.2k1MITPHPPHP &gt;=7.4

Since Jul 28Pushed 1y ago1 watchersCompare

[ Source](https://github.com/jgniecki/MinecraftRcon)[ Packagist](https://packagist.org/packages/dev-lancer/minecraft-rcon)[ Docs](https://github.com/thedudeguy/PHP-Minecraft-Rcon)[ RSS](/packages/dev-lancer-minecraft-rcon/feed)WikiDiscussions main Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (1)

Minecraft Rcon
==============

[](#minecraft-rcon)

[![](https://camo.githubusercontent.com/1937cc9997bb344a215f3bf92dec695df95fcb34ec042918555a614eef87a687/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6465762d6c616e6365722f6d696e6563726166742d72636f6e3f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/1937cc9997bb344a215f3bf92dec695df95fcb34ec042918555a614eef87a687/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6465762d6c616e6365722f6d696e6563726166742d72636f6e3f7374796c653d666f722d7468652d6261646765)[![](https://camo.githubusercontent.com/05bbc3ccced21f143a627d822883b26c4aa2b10aaa446bb3021c95cdba3f75e7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6465762d6c616e6365722f6d696e6563726166742d72636f6e3f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/05bbc3ccced21f143a627d822883b26c4aa2b10aaa446bb3021c95cdba3f75e7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6465762d6c616e6365722f6d696e6563726166742d72636f6e3f7374796c653d666f722d7468652d6261646765)[![](https://camo.githubusercontent.com/aa22a385b19865d677be287b7a5a5d5cd32b41547db7b9eb40c497eff99ec36b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6a676e6965636b692f4d696e65637261667452636f6e3f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/aa22a385b19865d677be287b7a5a5d5cd32b41547db7b9eb40c497eff99ec36b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6a676e6965636b692f4d696e65637261667452636f6e3f7374796c653d666f722d7468652d6261646765)[![](https://camo.githubusercontent.com/0be67530885390013a2307f4fa66b66f6eee1014b527f2536bb49d21c1172fe6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6465762d6c616e6365722f6d696e6563726166742d72636f6e3f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/0be67530885390013a2307f4fa66b66f6eee1014b527f2536bb49d21c1172fe6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6465762d6c616e6365722f6d696e6563726166742d72636f6e3f7374796c653d666f722d7468652d6261646765)

PHP library to request RCON for Minecraft servers

Installation
------------

[](#installation)

### Using Composer

[](#using-composer)

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

```
$ composer require dev-lancer/minecraft-rcon
```

Example
-------

[](#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 = 'some.minecraftserver.com'; // Server host name or IP
$port = 25575;                      // Port rcon is listening on
$password = 'server-rcon-password'; // rcon.password setting set in server.properties
$timeout = 3;                       // How long to timeout.

use DevLancer\MinecraftRcon;

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

if ($rcon->connect()) {
    if ($rcon->sendCommand("say Hello World!") === false) {
        //bad request
    } else {
        echo $rcon->getResponse(); //success
    }
} else {
    echo $rcon->getResponse(); //error
}
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

704d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8c5ff1caa1095245f5cd5bc03e93f74db10210c2283e2f15dfcb3e8cbd654391?d=identicon)[bubanga](/maintainers/bubanga)

---

Top Contributors

[![jgniecki](https://avatars.githubusercontent.com/u/19625445?v=4)](https://github.com/jgniecki "jgniecki (2 commits)")

---

Tags

libraryminecraftphprconserverphpserverminecraftrcon

### Embed Badge

![Health badge](/badges/dev-lancer-minecraft-rcon/health.svg)

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

###  Alternatives

[felixfbecker/language-server-protocol

PHP classes for the Language Server Protocol

22581.4M6](/packages/felixfbecker-language-server-protocol)[php-mcp/server

PHP SDK for building Model Context Protocol (MCP) servers - Create MCP tools, resources, and prompts

850577.8k55](/packages/php-mcp-server)[renoki-co/laravel-healthchecks

Laravel Healthchecks is a simple controller class that helps you build your own healthchecks endpoint without issues.

5755.0k](/packages/renoki-co-laravel-healthchecks)[appserver-io/webserver

Multithreaded webserver for php written in php

465.8k1](/packages/appserver-io-webserver)[mmoreram/translation-server

PHP translation server

233.8k2](/packages/mmoreram-translation-server)

PHPackages © 2026

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