add php implementation
fix README.md php example
format php file
Merge pull request #1 from larryli/master

add php implementation