PHP Classes

Valve RCON: Manage remote game servers via RCON protocol

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 61%Total: 1,009 All time: 3,629 This week: 560Up
Version License PHP version Categories
valve_rcon 1.0GNU General Publi...5.0Networking, PHP 5, Games
Description 

Author

This class can be used to manage game servers using a remote console via TCP and UDP.

It can establish a TCP or UDP connection to a game server that supports the Source RCON protocol and authenticate as an authorized user.

The class can send commands to the remote servers to control the games.

This is an updated version of the original class by the same author to use PHP 5 features and also support UDP connections.

Picture of Shannon Wynter
Name: Shannon Wynter is available for providing paid consulting. Contact Shannon Wynter .
Classes: 9 packages by
Country: Australia Australia
Age: 43
All time rank: 1232 in Australia Australia
Week rank: 180 Down3 in Australia Australia Down
Innovation award
Innovation award
Nominee: 3x

Details

Valve RCON Class. ------------------- Version 1.0 Author: Shannon Wynter (http://fremnet.net/contact) Copyright (C) Shannon Wynter & Fremnet.net License: GPL 2.0 or greater The php5 version of my original RCON class for making use of the remote console facilities on various game servers. Basic Synapsis: ------------------- There are two ways to use this class, one is the more traditional lazy method as implemented by other functions/classes availible on the net, the other is a stricter method that requires you to do your own connecting and authenticating. There is a performance penalty for using the traditional method over multiple commands in that it has to connect, and authenticate every single time. So my general advice, use the general usage method as described below if you have to execute more then a couple of commands ** General Usage: include('valve_rcon.php'); $r = new Valve_RCON('secret', '121.45.193.22', 27015, Valve_RCON::PROTO_SOURCE); $r->connect(); $r->authenticate(); print $r->execute('status'); print $r->execute('kick user'); $->disconnect(); ** Traditional Lazy Usage: include('valve_rcon.php'); $r = new Valve_RCON('secret', '121.45.193.22', 27015, Valve_RCON::PROTO_SOURCE); print $r->execute('status'); Full Documentation: ------------------- You can generate full documentation by making sure you have phpDocumentor installed and running the document.sh file found in this directory License: ------------------- This library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version. This program 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 General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

  Files folder image Files (15)  
File Role Description
Files folder imagedoc (7 files, 2 directories)
Files folder imageexample (1 file)
Accessible without login Plain text file document.sh Data Documentation Generator
Accessible without login Plain text file README Doc. Readme file
Plain text file valve_rcon.php Class The Valve_RCON class

  Files folder image Files (15)  /  doc  
File Role Description
Files folder imageFremnet (1 directory)
Files folder imagemedia (2 files)
  Accessible without login HTML file blank.html Doc. Documentation
  Accessible without login HTML file classtrees_Fremnet.html Doc. Documentation
  Accessible without login HTML file elementindex.html Doc. Documentation
  Accessible without login HTML file elementindex_Fremnet.html Doc. Documentation
  Accessible without login HTML file index.html Doc. Main Documentation Index
  Accessible without login HTML file li_Fremnet.html Doc. Documentation
  Accessible without login HTML file packages.html Doc. Documentation

  Files folder image Files (15)  /  doc  /  Fremnet  
File Role Description
Files folder imageValve_RCON (2 files)

  Files folder image Files (15)  /  doc  /  Fremnet  /  Valve_RCON  
File Role Description
  Accessible without login HTML file Valve_RCON.html Doc. Documentation
  Accessible without login HTML file _valve_rcon.php.html Doc. Documentation

  Files folder image Files (15)  /  doc  /  media  
File Role Description
  Accessible without login Plain text file banner.css Data CSS for Documentation
  Accessible without login Plain text file stylesheet.css Data CSS for Documentation

  Files folder image Files (15)  /  example  
File Role Description
  Accessible without login Plain text file example.php Example A complete example for both Classic and Source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,009
This week:0
All time:3,629
This week:560Up
User Ratings User Comments (1)
 All time
Utility:79%StarStarStarStar
Consistency:79%StarStarStarStar
Documentation:70%StarStarStarStar
Examples:66%StarStarStarStar
Tests:-
Videos:-
Overall:61%StarStarStarStar
Rank:1079
 
Works Great!
13 years ago (Andrei M)
67%StarStarStarStar