main php framework for substation reading app