added some php classes/snippets