Implement php support

Implement php support and create test page.