Skip to content

phptransformers/dwoo

Repository files navigation

Dwoo for PHPTransformers

Dwoo support for PHPTransformers.

Install

Via Composer

$ composer require phptransformers/dwoo

Usage

$engine = new DwooTransformer();
echo $engine->render('Hello, {$name}!', array('name' => 'phptransformers'));

Options

$engine = new DwooTransformer(array(
    'cache-dir' => 'path/to/the/cache', // Default to the system temporary directory
    'compile-dir' => 'path/to/the/compile/dir', // Default to the system temporary directory
    'template-dir' => 'path/to/the/templates' // By default search for absolute path
));

// ...

$core = new \Dwoo\Core();
$engine = new DwooTransformer(array(
    'dwoo' => $core // All others options are ignored
));

Testing

$ composer test

License

The MIT License (MIT). Please see License File for more information.