PHPackages                             louixscult/querylabel - 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. louixscult/querylabel

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

louixscult/querylabel
=====================

A MCPE query library for PHP

v1.0.0(2mo ago)11MITPHP

Since Apr 26Pushed 2mo agoCompare

[ Source](https://github.com/louixscult/QueryLabel)[ Packagist](https://packagist.org/packages/louixscult/querylabel)[ RSS](/packages/louixscult-querylabel/feed)WikiDiscussions main Synced today

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

QueryLabel
==========

[](#querylabel)

MCPE query library for PHP

Introduction
============

[](#introduction)

QueryLabel is a library for PocketMine-MP To make a query to an MCPE server using sockets. The library will retrieve the data and transform it into an object, which can then be serialized.

Instalation
===========

[](#instalation)

You can use the library in Composer.

Example:

```
composer require louixscult/querylabel
```

You can also use it in Poggit plugins. Example of use in poggit.yml file:

```
---
build-by-default: true
branches:
- yourpluginbranch
projects:
  YourProjectName:
    libs:
      - src: louixscult\QueryLabel
        version: ^1.0.0
    path: ''
...
```

Using the library
=================

[](#using-the-library)

You can perform a query using the `QueryHandle::query()` method. It works by sending a query, using sockets, thus returning the data from the server, therefore, transforming raw data and returning the object **ServerQuery**

Example (Using Composer)
------------------------

[](#example-using-composer)

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

use louixscult\querylabel\QueryHandler;

// returns a ServerQuery obj
$queryData = QueryHandler::query(
  'myserver.xyz', // address
  19132, // port
  3 // tries
)->jsonSerialize(); // suport for serialize the obj

var_dump($queryData);
```

The object also has methods related to server data, allowing you to retrieve information from the server more easily.

Example of a query to retrieve the number of players on the server (Using Composer)
-----------------------------------------------------------------------------------

[](#example-of-a-query-to-retrieve-the-number-of-players-on-the-server-using-composer)

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

use louixscult\querylabel\QueryHandler;

$query = QueryHandler::query('myserver.xyz', 19132);
$players = $query->getPlayersCount();

echo 'There are ' . $players . ' players in this server';
```

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance87

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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

Every ~23 days

Total

2

Last Release

69d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/207d8ba8a4bbec891a429f8129f342d20bd3da5b070ef8a17d9b8ed0dd6a6d33?d=identicon)[louixscult](/maintainers/louixscult)

---

Top Contributors

[![louixscult](https://avatars.githubusercontent.com/u/94804469?v=4)](https://github.com/louixscult "louixscult (3 commits)")

### Embed Badge

![Health badge](/badges/louixscult-querylabel/health.svg)

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

###  Alternatives

[scriptixru/sypexgeo

Supports GeoIP services (sypexgeo.net).

3329.9k](/packages/scriptixru-sypexgeo)

PHPackages © 2026

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