New PHP implementation
Merge pull request #89 from coop182/master

Another PHP implementation...