PHPackages                             gries/php-source-query-class - 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. gries/php-source-query-class

Abandoned → [gries/rcon](/?search=gries%2Frcon)Library[Utility &amp; Helpers](/categories/utility)

gries/php-source-query-class
============================

Forked Repo to improve Mincraft-Support

0.0.2(12y ago)017211C-BY-NC-SA-3.0PHP

Since Jan 11Pushed 12y ago1 watchersCompare

[ Source](https://github.com/gries/PHP-Source-Query-Class)[ Packagist](https://packagist.org/packages/gries/php-source-query-class)[ RSS](/packages/gries-php-source-query-class/feed)WikiDiscussions master Synced 5d ago

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

PHP Source Query
================

[](#php-source-query)

Description
-----------

[](#description)

This class was created to query game server which use the Source query protocol, this includes all source games, half-life 1 engine games and Call of Duty: Modern Warfare 3

The class also allows you to query servers using RCON although this only works for half-life 1 and source engine games.

[Minecraft](http://www.minecraft.net) also uses Source RCON protocol, and this means you can use this class to send commands to your minecraft server while having engine set to source.

### Protocol specifications can be found over at VDC

[](#protocol-specifications-can-be-found-over-at-vdc)

- [https://developer.valvesoftware.com/wiki/Server\_queries](https://developer.valvesoftware.com/wiki/Server_queries)
- [https://developer.valvesoftware.com/wiki/Source\_RCON\_Protocol](https://developer.valvesoftware.com/wiki/Source_RCON_Protocol)

Supported Games
---------------

[](#supported-games)

- All multiplayer games released by Valve: *[Counter-Strike 1.6](http://store.steampowered.com/app/10/), [Counter-Strike: Global Offensive](http://store.steampowered.com/app/730/), [Team Fortress 2](http://store.steampowered.com/app/440/), etc...*
- [Rag Doll Kung Fu](http://store.steampowered.com/app/1002/)
- [The Ship](http://store.steampowered.com/app/2400/)
- [Dino D-Day](http://store.steampowered.com/app/70000/)
- [Nuclear Dawn](http://store.steampowered.com/app/17710/)
- [Just Cause 2: Multiplayer Mod](http://store.steampowered.com/app/259080/)
- [Call of Duty: Modern Warfare 3](http://store.steampowered.com/app/115300/)
- [Minecraft](http://www.minecraft.net/) **(RCON ONLY!)**
- *and many other games that implement Source Query Protocol*

Functions
---------

[](#functions)

  Connect( $Ip, $Port, $Timeout, $Engine ) Opens connection to a server   Disconnect( ) Closes all open connections   Ping( ) Ping the server to see if it exists
**Warning:** Source engine may not answer to this   GetInfo( ) Returns server info in an array   GetPlayers( ) Returns players on the server in an array   GetRules( ) Returns public rules *(cvars)* in an array   SetRconPassword( $Password ) Sets rcon password for later use with *Rcon()*   Rcon( $Command ) Execute rcon command on the server License
-------

[](#license)

> *This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
> To view a copy of this license, visit *

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 69.2% 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 ~1 days

Total

2

Last Release

4507d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/db7c27a0fae43ee96bc83d30f0801bfcb2033cd403f013fa8a5795ba7c846672?d=identicon)[gries](/maintainers/gries)

---

Top Contributors

[![xPaw](https://avatars.githubusercontent.com/u/613331?v=4)](https://github.com/xPaw "xPaw (9 commits)")[![gries](https://avatars.githubusercontent.com/u/417823?v=4)](https://github.com/gries "gries (4 commits)")

### Embed Badge

![Health badge](/badges/gries-php-source-query-class/health.svg)

```
[![Health](https://phpackages.com/badges/gries-php-source-query-class/health.svg)](https://phpackages.com/packages/gries-php-source-query-class)
```

###  Alternatives

[rumenx/php-feed

Framework-agnostic PHP Feed generator for Laravel, Symfony, and more.

3652.3k](/packages/rumenx-php-feed)[inpsyde/disable-comments

Entirely ditches comments as a WordPress feature.

1720.7k1](/packages/inpsyde-disable-comments)

PHPackages © 2026

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