I saw a project, in which they are doing a Dynamic build script in php that will build static html pages out of php pages. That is the html file will look exactly like the php file. The idea behind this is all the html pages will load faster and the datas will be retrieved from Webserviceses..
Also the build script will be capable of taking build for production environment tat is with min files for other environments without min files. Same with JS unit test scripts.
My Question is, is there any specific PHP framework to achieve this functionality i.e Build architecture, php to html conversion etc… Sorry if my question is so basic, I am practically little new to PHP.
Thanks in advance..
That sounds like something most of the templating engines do (Smarty is probably the most popular stand-alone engine). A large number of CMS systems that include a templating engine, as well as any of the larger frameworks with templating extensions, will likely do the same thing.
To achieve what you want, you pretty much can’t go wrong with just about any of the major template engines, CMSes, or frameworks (which one you’d choose depends on your other needs), but the key that you’d want to look for is something along the lines of “template caching,” “output caching,” “view caching,” or similar phrasing in the list of features for the caching capability (what you described as turning the PHP files into HTML files), and “minifying” or “compression” (note – source code compression is different from “gzip compression”) for producing minified versions of files.