CGMiner PHP Helper Class