Phptempt is a template engine for PHP and Java. Templates are precompiled and then included to the script/Java program as a PHP script/Java program. Templates are organized in blocks and placeholders, all placed in one single file. Blocks may be recursive. A version of the engine is available that is optimized for Java and particularly useful for the creation of code generators of any kind.
BlockTemplate is a class that implements a template engine based on the concept of blocks. The template files do not define looping logic, only variables or parameters to be replaced, to avoid using programming concepts that are not easy for designers to understand. The class supports event driven callback functions for customizing the template engine behavior.
The Simple HTML Parser is a fast HTML parser for PHP 5 that might be described as a stream parser. It divides HTML into nodes (tags, text, or comments) and returns them one at a time in the order they appear in the source. It was inspired by HTML Parser for PHP-4 but was written from the ground up with speed as the primary goal.
Highlighter is a PHP class that can be used to reformat highlighted PHP code. It can highlight PHP code and turn keywords into links to the respective manual page in the PHP.net site. If the code is not enclosed in PHP code tags, it adds these tags before highlighting the code. It can also escape a text string to display as HTML using configurable block tags.