Add php class file.
Update readme with an example