This is a tweak on p4xil's design and implementation.
All credit goes to p4xil
Change functions.inc.php to contain your web server and rig ip (and email address optionally)
Change apiwrapper.php to contain your doge address to monitor amount in wallet
You can get more info and tutorial here:
https://bitcointalk.org/index.php?topic=222632
or