jbboehr / handlebars
PHP handlebars compiler and VM
Installs: 1 022
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 0
Open Issues: 0
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 Compiler and VM. Use with handlebars.c and php-handlebars.
Deprecated: Use php-handlebars instead
Requirements
Install
Via Composer
composer require jbboehr/handlebars
Usage
$handlebars = new Handlebars\Handlebars(); $fn = $handlebars->compile('{{foo}}'); echo $fn(array( 'foo' => 'bar', )); echo $handlebars->render('{{foo}}', array( 'foo' => 'bar', ));
Testing
make test
License
This project is licensed under the LGPLv3. handlebars.js is licensed under the MIT license.