PHPTAL support for PHPTransformers.
Via Composer
$ composer require phptransformers/phptal
$engine = new PHPTALTransformer();
echo $engine->render('<tal:block>Hello, ${name}!</tal:block>', array('name' => 'phptransformers'));
$engine = new PHPTALTransformer(array(
'cache-dir' => 'path/to/cache/directory', // Default to the system temporary directory
'template-dir' => 'path/to/template/directory' // default to $PWD
));
// ...
$phptal = new \PHPTAL();
$engine = new PHPTALTransformer(array(
'phptal' => $phptal // All others options are ignored
));
$ composer test
The MIT License (MIT). Please see License File for more information.