php class for adding a to a webpage.