chore(php example app): rewrite PHP app to pass tests

PHP app will now pass tests. It did not previously.