added boilerplate php class. updated usage documentation.