PHPackages                             justblackbird/handlebars.php-helpers - 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. justblackbird/handlebars.php-helpers

ActiveLibrary[Templating &amp; Views](/categories/templating)

justblackbird/handlebars.php-helpers
====================================

A set of helpers for Handlebars.php template engine.

1.2.0(9y ago)1038.1k—10%6[1 issues](https://github.com/JustBlackBird/handlebars.php-helpers/issues)3MITPHP

Since Dec 12Pushed 9y ago1 watchersCompare

[ Source](https://github.com/JustBlackBird/handlebars.php-helpers)[ Packagist](https://packagist.org/packages/justblackbird/handlebars.php-helpers)[ RSS](/packages/justblackbird-handlebarsphp-helpers/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (7)Used By (3)

Handlebars.php Helpers
======================

[](#handlebarsphp-helpers)

[![Build Status](https://camo.githubusercontent.com/597c70b0c61d8d0af4d58b24da55313f000a4fcd9a28f4e38a9d0102ed8e330e/68747470733a2f2f7472617669732d63692e6f72672f4a757374426c61636b426972642f68616e646c65626172732e7068702d68656c706572732e737667)](https://travis-ci.org/JustBlackBird/handlebars.php-helpers)

> Provides a set of helpers for [Handlebars.php](https://github.com/XaminProject/handlebars.php) template engine.

Installation
------------

[](#installation)

Simply add a dependency on `justblackbird/handlebars.php-helpers` to your project's `composer.json` file if you use [Composer](http://getcomposer.org/) to manage the dependencies of your project.

Usage
-----

[](#usage)

To use all helpers in your templates just create an instance of helpers set and attach it to Handlebars engine.

```
$helpers = new \JustBlackBird\HandlebarsHelpers\Helpers();
$engine = new \Handlebars\Handlebars(array('helpers' => $helpers));
```

Want to use only subset of helpers? Fine. Just create an instance of appropriate helpers set and attach it to Handlebars engine. Here is an example for Date helpers:

```
$helpers = new \JustBlackBird\HandlebarsHelpers\Date\Helpers();
$engine = new \Handlebars\Handlebars(array('helpers' => $helpers));
```

Want to use only chosen helpers? No problem. Just add them manually to your helpers set:

```
$engine = new \Handlebars\Handlebars();
$engine->getHelpers()->add(
    'ifEqual',
    new \JustBlackBird\HandlebarsHelpers\Comparison\IfEqualHelper()
);
```

License
-------

[](#license)

[MIT](http://opensource.org/licenses/MIT) (c) Dmitriy Simushev

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 95.5% 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 ~167 days

Recently: every ~208 days

Total

6

Last Release

3336d ago

Major Versions

0.3.0 → 1.0.02016-02-20

### Community

Maintainers

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

---

Top Contributors

[![JustBlackBird](https://avatars.githubusercontent.com/u/1167086?v=4)](https://github.com/JustBlackBird "JustBlackBird (42 commits)")[![mattmezza](https://avatars.githubusercontent.com/u/1915989?v=4)](https://github.com/mattmezza "mattmezza (2 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/justblackbird-handlebarsphp-helpers/health.svg)

```
[![Health](https://phpackages.com/badges/justblackbird-handlebarsphp-helpers/health.svg)](https://phpackages.com/packages/justblackbird-handlebarsphp-helpers)
```

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3871.2M](/packages/limenius-react-bundle)[symfony/ux-icons

Renders local and remote SVG icons in your Twig templates.

555.8M69](/packages/symfony-ux-icons)[nystudio107/craft-twigpack

Twigpack is a bridge between Twig and webpack, with manifest.json &amp; webpack-dev-server HMR support

97341.4k17](/packages/nystudio107-craft-twigpack)

PHPackages © 2026

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