Php class generator