PHP - HTML生成器[关闭]

I am going to create a HTML generator based on PHP, this generator will help me to create some HTML file. The HTML file's content is based on the data input by user. Is there any PHP class or PHP framework I can used to develop this tools in a easy way?

most PHP frameworks have (or implement the ability from extensions) the functionality you need. e.g. Cakephp has the so-called helper classes, some of which are used to generate html content.

example (cakePHP):

echo $this->Form->input($params);

this generates input controls based on parameters passed to it.

Reference

PHP is also known as "Hypertext Preprocessor", so all you need is PHP itself in order to "generate" html files. PHP can interpret data inputs and give wanted outputs as an html file. Actually it's the only way that PHP works.