jbboehr / handlebars
v0.7.0
2016-04-14 04:16 UTC
Requires
- php: >=5.3.0
- ext-handlebars: ~0.7.0
- ext-spl: *
- psr/log: ~1.0.0
Requires (Dev)
- jbboehr/coding-standard: 1.0.*@dev
- jbboehr/handlebars-spec: 4.0.4
- jbboehr/mustache-spec: 1.1.2
- lox/xhprof: dev-master
- pear/console_table: ~1.2.1
- phpunit/phpcov: ~2.0.2
- phpunit/phpunit: ~4.8
- satooshi/php-coveralls: ~1.0.0
- scrutinizer/ocular: ~1.1
- squizlabs/php_codesniffer: ~2.3.2
Suggests
- ext-psr: *
This package is auto-updated.
Last update: 2020-05-26 23:14:12 UTC
README
PHP handlebars.js 编译器和 VM。与handlebars.c和php-handlebars一起使用。
已弃用:使用php-handlebars代替
需求
安装
通过Composer
composer require jbboehr/handlebars
使用
$handlebars = new Handlebars\Handlebars(); $fn = $handlebars->compile('{{foo}}'); echo $fn(array( 'foo' => 'bar', )); echo $handlebars->render('{{foo}}', array( 'foo' => 'bar', ));
测试
make test