History of this script: This is a PHP script I made four years ago during AP Computer Science in high school when I was bored enough to count dots on the ceiling.

This was my first and only real PHP script. (I had fragments of other scripts of things I came up with but never got much past inception with)
So why release it now?: Somehow it came up in a discussion with Ninjadude101, I found the poor script rotting in some forsaken corner of my archive, dusted it off a bit, updated the A2S_INFO query (it changed since I made it), and decided I may as well give the script the light of day. I never used it personally, but maybe there'll be some interest out there.
Things you should know: As I said, it was my first PHP script. Probably a bit messy and there's a few bugs. I know of a few already: it errors out if your server is down and I think it might choke on certain replies if there's a lot of information (except for the rcon bit, that seems to be okay with big stuff). If there's a lot of interest I'll fix any bugs found, seems like they'd be pretty easy to fix anyways.
How to use it:Look at the code below, it should be pretty self explanatory. Use var_dump to see what the results of a query is.
$a = new SrcQR( "38.96.12.159", "27016" );
$info = $a->getInfo();
$players = $a->getPlayers();
//$a->getRules();
$a->auth( 'rcon_pass' );
if ( $a->authed ) {
$rcon_result = $a->rconCommand( 'cvarlist' );
}
getRules() didn't work at the time I made this because garry refused to implement it. Not sure if it works now or not. Put your rcon pass in auth if you're using rcon. You do receive the rcon results with rconCommand.
License:Note that this isn't the usual Ulysses license as it is the Creative Commons Attribution-NonCommercial-NoDerivs.
Download:See below. You must be registered to see it.