added php example script and unit test for phpunit