Added PHP templating engine and test cases