php class generator