All Projects β†’ xPaw β†’ Php Source Query

xPaw / Php Source Query

Licence: lgpl-2.1
🐘 PHP library to query servers that implement Steam query protocol (also known as Source Engine Query protocol)

Projects that are alternatives of or similar to Php Source Query

VJ-Base
An addon for Garry's mod that contains bunch of bases to make many different types of addons.
Stars: ✭ 57 (-87.64%)
Mutual labels:  steam, source-engine
Async Gamequery Lib
A high-performance java game query library designed for steam/source based games and others
Stars: ✭ 88 (-80.91%)
Mutual labels:  steam, source-engine
Half-Life-Resurgence
Recreation & expansion of NPCs, entities, and weapons from the Half-Life series into Garry's Mod!
Stars: ✭ 52 (-88.72%)
Mutual labels:  steam, source-engine
Sourcedemorender
Multithreaded, hardware accelerated solution to create high quality movies for the Source engine.
Stars: ✭ 152 (-67.03%)
Mutual labels:  steam, source-engine
Fragsurf-2
Fragsurf is an actively developed standalone game based on HL2 surf and bhop movement mechanics.
Stars: ✭ 68 (-85.25%)
Mutual labels:  steam, source-engine
CallAdmin
CallAdmin is a multilingual sourcemod plugin which provides in-game report functionality
Stars: ✭ 52 (-88.72%)
Mutual labels:  steam, source-engine
HammerPatch
Modification of Source Valve Hammer Editor to fix some issues. Fixes brush vertex precision loss.
Stars: ✭ 49 (-89.37%)
Mutual labels:  steam, source-engine
Gamer Os
A Steam Big Picture based couch gaming OS
Stars: ✭ 366 (-20.61%)
Mutual labels:  steam
Sourceengine2007
Description
Stars: ✭ 387 (-16.05%)
Mutual labels:  source-engine
Steamdatabasebackend
βš’ The application that keeps SteamDB up to date with the latest changes
Stars: ✭ 359 (-22.13%)
Mutual labels:  steam
Awesome Steam
😎 A curated list of packages and resources regarding Steam development
Stars: ✭ 342 (-25.81%)
Mutual labels:  steam
Hourboostr
Two programs for idling Steam game hours and trading cards
Stars: ✭ 372 (-19.31%)
Mutual labels:  steam
Mastercomfig
A modern Team Fortress 2 performance and customization config
Stars: ✭ 390 (-15.4%)
Mutual labels:  source-engine
Node Csgo
A node-steam plugin for Counter-Strike: Global Offensive.
Stars: ✭ 367 (-20.39%)
Mutual labels:  steam
Node Steam Guide
A guide to creating Steam bots and websites using Node.js
Stars: ✭ 427 (-7.38%)
Mutual labels:  steam
Steam Condenser
A multi-language library for querying the Steam Community, Source, GoldSrc servers and Steam master servers
Stars: ✭ 352 (-23.64%)
Mutual labels:  steam
Phpunit Snapshot Assertions
A way to test without writing actual testΒ cases
Stars: ✭ 443 (-3.9%)
Mutual labels:  phpunit
Tikione Steam Cleaner
Steam/GOG/Origin games redistributable packages finder and remover. Available in 13 languages.
Stars: ✭ 418 (-9.33%)
Mutual labels:  steam
Steam Library Manager
Open source utility to manage Steam, Origin and Uplay libraries in ease of use with multi library support
Stars: ✭ 382 (-17.14%)
Mutual labels:  steam
Designpatternsphp
sample code for several design patterns in PHP 8
Stars: ✭ 20,158 (+4272.67%)
Mutual labels:  phpunit

PHP Source Query

Packagist Downloads Packagist Version

This class was created to query game server which use the Source query protocol, this includes all source games, and all the games that implement Steamworks.

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

Minecraft 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 engine.

⚠️ Do not send me emails if this does not work for you, I will not help you.

Requirements

Protocol Specifications

Supported Games

AppID Game Query RCON Notes
~ All HL1/HL2 games and mods βœ… βœ…
10 Counter-Strike 1.6 βœ… βœ…
440 Team Fortress 2 βœ… βœ…
550 Left 4 Dead 2 βœ… βœ…
730 Counter-Strike: Global Offensive βœ… βœ… host_name_store 1; host_info_show 2; host_players_show 2
1002 Rag Doll Kung Fu βœ… βœ…
2400 The Ship βœ… βœ…
4000 Garry's Mod βœ… βœ…
17710 Nuclear Dawn βœ… βœ…
70000 Dino D-Day βœ… βœ…
107410 Arma 3 βœ… ❌ Add +1 to the server port
115300 Call of Duty: Modern Warfare 3 βœ… βœ…
211820 Starbound βœ… βœ… Call SetUseOldGetChallengeMethod method after connecting
244850 Space Engineers βœ… ❌ Add +1 to the server port
251570 7 Days to Die βœ… ❌
252490 Rust βœ… ❌
282440 Quake Live βœ… ❌ Quake Live uses the ZMQ messaging queue protocol for rcon control.
346110 ARK: Survival Evolved βœ… βœ…
~ Minecraft ❌ βœ…

Open a pull request if you know another game which supports Source Query and/or RCON protocols.

How to tell if the game supports Source Query Protocol?

Add your server to your favourites in Steam server browser, and if Steam can display information about your server, then the protocol is supported.

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

Also refer to examples folder to work things out.

License

PHP Source Query
Copyright (C) 2012-2015 Pavel Djundik

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].