PHPackages                             jbboehr/handlebars - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. jbboehr/handlebars

Abandoned → [https://github.com/jbboehr/php-handlebars](/?search=https%3A%2F%2Fgithub.com%2Fjbboehr%2Fphp-handlebars)ArchivedLibrary[Templating &amp; Views](/categories/templating)

jbboehr/handlebars
==================

PHP handlebars compiler and VM

v0.7.0(10y ago)31.0kLGPLv3PHPPHP &gt;=5.3.0

Since Mar 5Pushed 7y ago1 watchersCompare

[ Source](https://github.com/jbboehr/handlebars.php)[ Packagist](https://packagist.org/packages/jbboehr/handlebars)[ Docs](http://github.com/jbboehr/handlebars.php)[ RSS](/packages/jbboehr-handlebars/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (11)Versions (23)Used By (0)

handlebars.php
==============

[](#handlebarsphp)

[![Build Status](https://camo.githubusercontent.com/14b255f650d62f555fcb664877521f21e8832ad6c9c5a09e4fef54785ec28198/68747470733a2f2f7472617669732d63692e6f72672f6a62626f6568722f68616e646c65626172732e7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jbboehr/handlebars.php)[![Coverage Status](https://camo.githubusercontent.com/bbd5a2b0fcbbf065463a8e12f7ff7419d0a137b1d73b507b888ca3290588b371/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6a62626f6568722f68616e646c65626172732e7068702f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/jbboehr/handlebars.php?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/442537823ad1a6d25f401e28f19f07412abc99c475ba038b55828d6fe5ee434b/68747470733a2f2f706f7365722e707567782e6f72672f6a62626f6568722f68616e646c65626172732f762f737461626c652e737667)](https://packagist.org/packages/jbboehr/handlebars)[![License](https://camo.githubusercontent.com/180346885f0ccde1f9d448bd3b66ca70bfefd39bd7b9c197d15871a436325f75/68747470733a2f2f706f7365722e707567782e6f72672f6a62626f6568722f68616e646c65626172732f6c6963656e73652e737667)](https://packagist.org/packages/jbboehr/handlebars)

PHP handlebars.js Compiler and VM. Use with [handlebars.c](https://github.com/jbboehr/handlebars.c) and [php-handlebars](https://github.com/jbboehr/php-handlebars).

**Deprecated: Use [php-handlebars](https://github.com/jbboehr/php-handlebars) instead**

Requirements
------------

[](#requirements)

[php-handlebars](https://github.com/jbboehr/php-handlebars)

Install
-------

[](#install)

Via Composer

```
composer require jbboehr/handlebars
```

Usage
-----

[](#usage)

```
$handlebars = new Handlebars\Handlebars();

$fn = $handlebars->compile('{{foo}}');
echo $fn(array(
    'foo' => 'bar',
));

echo $handlebars->render('{{foo}}', array(
    'foo' => 'bar',
));
```

Testing
-------

[](#testing)

```
make test
```

License
-------

[](#license)

This project is licensed under the [LGPLv3](http://www.gnu.org/licenses/lgpl-3.0.txt). handlebars.js is licensed under the [MIT license](http://opensource.org/licenses/MIT).

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~25 days

Recently: every ~41 days

Total

17

Last Release

3687d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ccc4aa01c69052830471c5ba84c4af824796d46d9920dc8574cb6e368281ab79?d=identicon)[jbboehr](/maintainers/jbboehr)

---

Top Contributors

[![jbboehr](https://avatars.githubusercontent.com/u/225601?v=4)](https://github.com/jbboehr "jbboehr (253 commits)")

---

Tags

handlebarshandlebars-jsphpphp-handlebarshandlebars

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/jbboehr-handlebars/health.svg)

```
[![Health](https://phpackages.com/badges/jbboehr-handlebars/health.svg)](https://phpackages.com/packages/jbboehr-handlebars)
```

###  Alternatives

[zordius/lightncandy

An extremely fast PHP implementation of handlebars ( http://handlebarsjs.com/ ) and mustache ( http://mustache.github.io/ ).

60910.5M45](/packages/zordius-lightncandy)[salesforce/handlebars-php

Handlebars processor for php

80713.2k11](/packages/salesforce-handlebars-php)[proai/laravel-handlebars

A Laravel wrapper for LightnCandy for using the Handlebars (and Mustache) template engine.

38204.7k](/packages/proai-laravel-handlebars)[rareloop/lumberjack-core

A powerful MVC framework for the modern WordPress developer. Write better, more expressive and easier to maintain code

42155.0k19](/packages/rareloop-lumberjack-core)[voodoophp/handlebars

Handlebars processor for php

34158.9k2](/packages/voodoophp-handlebars)[devtheorem/php-handlebars

A blazing fast, spec-compliant PHP implementation of Handlebars.

1924.8k2](/packages/devtheorem-php-handlebars)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
