phptransformers / plates
Plates implementation of PhpTransformer
1.0.1
2017-10-05 18:37 UTC
Requires
- league/plates: 3.*
- phptransformers/phptransformer: ~1.0.0
Requires (Dev)
- phpmd/phpmd: ^2.4
- phpunit/phpunit: ~4.6
- sebastian/phpcpd: ^2.0
- squizlabs/php_codesniffer: ~2.3
This package is auto-updated.
Last update: 2024-11-17 00:00:30 UTC
README
Plates support for PHPTransformers.
Install
Via Composer
$ composer require phptransformers/plates
Usage
$engine = new PlatesTransformer(); echo $engine->render('Hello, {$name}!', array('name' => 'phptransformers'));
Options
$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 ));
Testing
$ composer test
License
The MIT License (MIT). Please see License File for more information.