Plates support for PHPTransformers.
Via Composer
$ composer require phptransformers/plates
$engine = new PlatesTransformer();
echo $engine->render('Hello, {$name}!', array('name' => 'phptransformers'));
$engine = new PlatesTransformer(array(
'directory' => 'path/to/the/templates', // Default to the current working directory
'extension' => 'plates' // Extensions of templates files (default to no extention filtering)
));
// ...
$plates = new \League\Plates\Engine();
$engine = new PlatesTransformer(array(
'plates' => $plates // All others options are ignored
));
$ composer test
The MIT License (MIT). Please see License File for more information.