Command pattern based php app