PHP Classes
elePHPant
Icontem

Valve RCON: Manage remote game servers via RCON protocol

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (15)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2008-08-06 (6 years ago) RSS 2.0 feedStarStarStarStar 72%Total: 938 This week: 1All time: 3,599 This week: 1,093Up
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: 33
All time rank: 1252 in Australia Australia
Week rank: 407 Down4 in Australia Australia Down
Innovation award
Innovation award
Nominee: 3x

Details provided by the author  
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  
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  /  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  /  doc  /  Fremnet  
File Role Description
Files folder imageValve_RCON (2 files)

  Files folder image Files  /  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  /  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  /  example  
File Role Description
  Accessible without login Plain text file example.php Example A complete example for both Classic and Source

 Version Control Unique User Downloads Download Rankings  
 0%Total:938All time:3,599
 This week:1This week:1,093Up
User Ratings User Comments (1)  
 All time
Utility:93%StarStarStarStarStar
Consistency:93%StarStarStarStarStar
Documentation:75%StarStarStarStar
Examples:87%StarStarStarStarStar
Tests:-
Videos:-
Overall:72%StarStarStarStar
Rank:137
 
Works Great!
4 years ago (Andrei M)
67%StarStarStarStar