phptransformers/dwoo
Composer 安装命令:
composer require phptransformers/dwoo
包简介
Dwoo implementation of PhpTransformer
README 文档
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.
统计信息
- 总下载量: 53
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2016-02-29