PHPackages                             alex.cool/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. alex.cool/rcon

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

alex.cool/rcon
==============

Simple Rcon class for php

v1.0.5(7y ago)1161MITPHP

Since May 25Pushed 2y agoCompare

[ Source](https://github.com/alexcool94/php-rcon)[ Packagist](https://packagist.org/packages/alex.cool/rcon)[ Docs](https://github.com/alexcool94/PHP-Rcon)[ RSS](/packages/alexcool-rcon/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)DependenciesVersions (4)Used By (0)

PHP-Rcon
========

[](#php-rcon)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/a7b021b8131d2cf8e4747e50c89a24435eb260ac7bb4e437bc63f91428a36359/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616c6578636f6f6c39342f5048502d52636f6e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/alexcool94/PHP-Rcon/?branch=master)[![Build Status](https://camo.githubusercontent.com/cfb357f71e0b2e1d10f9849e18d4b3d9f06e5ff2a7c62b23e27641f8c50e3019/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f616c6578636f6f6c39342f5048502d52636f6e2f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/alexcool94/PHP-Rcon/build-status/master)

Simple Rcon class for php.

Project forked from [thedudeguy/PHP-Minecraft-Rcon](https://github.com/thedudeguy/PHP-Minecraft-Rcon)

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

[](#installation)

### Using Composer

[](#using-composer)

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

```
$ composer require alex.cool/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.

```
require_once __DIR__ . '/vendor/autoload.php';

use AlexCool\Rcon\Client\MinecraftClient;

$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.

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

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

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Every ~521 days

Total

2

Last Release

2756d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d233ca956e8a7b3cd95297b9458cbb56451b8d58868ccb023f38c84745fe37e2?d=identicon)[Alex Cool](/maintainers/Alex%20Cool)

---

Top Contributors

[![thedudeguy](https://avatars.githubusercontent.com/u/926132?v=4)](https://github.com/thedudeguy "thedudeguy (27 commits)")[![alex-cool-tech](https://avatars.githubusercontent.com/u/24246932?v=4)](https://github.com/alex-cool-tech "alex-cool-tech (17 commits)")[![ricardoboss](https://avatars.githubusercontent.com/u/6266356?v=4)](https://github.com/ricardoboss "ricardoboss (3 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (3 commits)")[![metroyanno](https://avatars.githubusercontent.com/u/12733387?v=4)](https://github.com/metroyanno "metroyanno (1 commits)")[![Wruczek](https://avatars.githubusercontent.com/u/7156344?v=4)](https://github.com/Wruczek "Wruczek (1 commits)")[![fwahlberg](https://avatars.githubusercontent.com/u/18613114?v=4)](https://github.com/fwahlberg "fwahlberg (1 commits)")[![ImmanuelNL](https://avatars.githubusercontent.com/u/25136687?v=4)](https://github.com/ImmanuelNL "ImmanuelNL (1 commits)")[![kriation](https://avatars.githubusercontent.com/u/411916?v=4)](https://github.com/kriation "kriation (1 commits)")

---

Tags

minecraftrcon

### Embed Badge

![Health badge](/badges/alexcool-rcon/health.svg)

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

###  Alternatives

[thedudeguy/rcon

Simple Rcon class for php.

16259.4k1](/packages/thedudeguy-rcon)[xpaw/php-minecraft-query

PHP library to query Minecraft servers

74299.8k3](/packages/xpaw-php-minecraft-query)[xpaw/php-source-query-class

PHP library to query and send RCON commands to servers based on "Source Engine Query" protocol

610189.9k7](/packages/xpaw-php-source-query-class)[spirit55555/php-minecraft

Useful PHP classes for Minecraft

6823.6k](/packages/spirit55555-php-minecraft)

PHPackages © 2026

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