Added new php files

Added helper php files.