Added php class and test file