HSTemplate implements a template engine with output caching support. It can assign template files a name so that they can be referenced by that name. The class loads template files from a given directory, which are HTML files with embedded PHP code. It can assign variables to each template that are stored as class variables. The templates are processed by turning template variables into local variables and then including the template file scripts. The results of processed templates can be cached to avoid subsequent template processing overhead.
Program is a PHP package that can be used to manage the execution of external programs from PHP. It can build a command line string to execute an external program synchronously or in the background, pass switches to define program options, and define the program input or output files. It also supports using driver classes that can build complex command line switches to simplify the definition of program options in a simplified way.