move the sample code from the readme to a php file