Added php functions and classes that were needed.
Merge branch 'master' of https://github.com/jaknapp/2d