phptransformers / dwoo
Dwoo implementation of PhpTransformer
1.0.0
2017-10-01 13:07 UTC
Requires
- dwoo/dwoo: ^1.2.1
- phptransformers/phptransformer: ~1.0.0
Requires (Dev)
- phpmd/phpmd: ^2.3
- phpunit/phpunit: ~4.6
- sebastian/phpcpd: ^2.0
- squizlabs/php_codesniffer: ~2.3
This package is auto-updated.
Last update: 2024-12-16 23:54:18 UTC
README
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.