Php architecture reference application