"PHPLIB -- Evaluates templates with regular expressions" - that's wrong. The PEAR class uses str_replace and only regex for block API.
Also, I'm not sure if only including the PHP code does make sense. What if I wanted to send e-mails based on templates? I would have to use output buffering ...