PHPackages                             adrien-nf/minecraft-server-status - 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. adrien-nf/minecraft-server-status

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

adrien-nf/minecraft-server-status
=================================

Get informations from a Minecraft server in real time.

1.0.1(2y ago)119MITPHP

Since Aug 6Pushed 2y ago1 watchersCompare

[ Source](https://github.com/adrien-nf/minecraft-server-status)[ Packagist](https://packagist.org/packages/adrien-nf/minecraft-server-status)[ RSS](/packages/adrien-nf-minecraft-server-status/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

minecraft-server-status
=======================

[](#minecraft-server-status)

Get informations from a Minecraft server in real time.

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

[](#installation)

### Via composer

[](#via-composer)

`composer require adrien-nf/minecraft-server-status`

Usage
-----

[](#usage)

### Server List Ping

[](#server-list-ping)

No configuration needed from the server, this is the easiest method.

```
use Ping\Ping;

$infos = (new Ping("localhost", 25565))->getInfos();

echo $infos->getVersion(); // 1.20.1
echo $infos->getServerType(); // Vanilla
echo $infos->getMotd(); // A Minecraft Server
echo $infos->getMaxPlayers(); // 20
echo $infos->getPlayersCount(); // 3
echo $infos->getIp(); // localhost
echo $infos->getPort(); // 25565

// With Ping, you only get a partial player list
var_dump($infos->getPlayers()); // ["Notch", "Deadmau5"]

// Some helper functions
echo $infos->isPlayerConnected("Notch"); // true
echo $infos->isVanilla(); // true
echo $infos->isBukkit(); // false
echo $infos->isSpigot(); // false
echo $infos->isPaper(); // false
```

### Query

[](#query)

Requires configuration in `server.properties`:

- `enable-query=true`
- `query.port=25565`

Once this is done, usage is pretty straightforward.

```
use Queries\JavaServerQuery;

$infos = (new JavaServerQuery("localhost", 25565))->getInfos();

echo $infos->getGameType(); // SMP
echo $infos->getWorldName(); // world

// With Query, you get a full players list
var_dump($infos->getPlayers()); // ["Notch", "Deadmau5", "Jeb"]
var_dump($infos->getPlugins()); // [["name" => "Shopkeepers", "version" => "2.17.1"], ["name" => "HolographicDisplays", "version" => "3.0.2"]]

// Some helper functions
echo $infos->getPluginsAsString(); // "Shopkeepers, HolographicDisplays"
echo $infos->getPluginsAsString(true); // "Shopkeepers 2.17.1, HolographicDisplays 3.0.2"
echo $infos->hasPlugin("Shopkeepers"); // true
var_dump($infos->getPluginsAsArray()) // ["Shopkeepers", "HolographicDisplays"]
var_dump($infos->getPluginsAsArray(true)) // ["Shopkeepers 2.17.1", "HolographicDisplays 3.0.2"]
```

Credits
-------

[](#credits)

This package has been inspired by [xPaw's](https://github.com/xPaw/PHP-Minecraft-Query) package, extended and corrected for simpler usage.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

1008d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b417c1cdc6568538e2154260def9678d292015361aad4911bcd0ffc19caf1244?d=identicon)[adrien-nf](/maintainers/adrien-nf)

---

Top Contributors

[![adrien-nf](https://avatars.githubusercontent.com/u/22148893?v=4)](https://github.com/adrien-nf "adrien-nf (8 commits)")

---

Tags

minecraftqueryrconserverserverlistpingslpstatus

### Embed Badge

![Health badge](/badges/adrien-nf-minecraft-server-status/health.svg)

```
[![Health](https://phpackages.com/badges/adrien-nf-minecraft-server-status/health.svg)](https://phpackages.com/packages/adrien-nf-minecraft-server-status)
```

###  Alternatives

[wesbos/burner-email-providers

A list of burner email providers.

1.2k189.1k2](/packages/wesbos-burner-email-providers)[verbb/super-table

Super-charge your content builders and create nested Matrix fields.

3141.6M22](/packages/verbb-super-table)[ampproject/amp-toolbox

A collection of AMP tools making it easier to publish and host AMP pages with PHP.

73616.7k1](/packages/ampproject-amp-toolbox)[pugx/shortid-php

An implementation of shortid in PHP

52588.5k3](/packages/pugx-shortid-php)[eklundkristoffer/seedster

24757.6k5](/packages/eklundkristoffer-seedster)[sylius/promotion

Flexible promotion management for PHP applications.

28477.8k9](/packages/sylius-promotion)

PHPackages © 2026

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