PHPackages                             mattmezza/slim-handlebars-view - 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. mattmezza/slim-handlebars-view

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

mattmezza/slim-handlebars-view
==============================

Handlebars View for Slim Framework

1.1.1(9y ago)0144[2 issues](https://github.com/mattmezza/slim-handlebars-view/issues)MITPHPPHP &gt;=5.5.0

Since Mar 22Pushed 9y ago1 watchersCompare

[ Source](https://github.com/mattmezza/slim-handlebars-view)[ Packagist](https://packagist.org/packages/mattmezza/slim-handlebars-view)[ Docs](https://github.com/mattmezza/slim-handlebars-view)[ RSS](/packages/mattmezza-slim-handlebars-view/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (5)Versions (4)Used By (0)

Slim Framework Handlebars View
==============================

[](#slim-framework-handlebars-view)

[![Build Status](https://camo.githubusercontent.com/33df236550412e88b5a466297458ef673a989880b54faa6ddca29913018cb0ed/68747470733a2f2f7472617669732d63692e6f72672f6d6174746d657a7a612f736c696d2d68616e646c65626172732d766965772e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mattmezza/slim-handlebars-view)

This is a Slim Framework view helper built on top of the Handlebars templating component. You can use this component to create and render templates in your Slim Framework application. It works with [handlebars.php by xamin project](https://github.com/XaminProject/handlebars.php).

Install
-------

[](#install)

Via [Composer](https://getcomposer.org/)

```
$ composer require mattmezza/slim-handlebars-view
```

Requires Slim Framework 3 and PHP 5.5.0 or newer.

Usage
-----

[](#usage)

```
// Create Slim app
$app = new \Slim\App();

// Fetch DI Container
$container = $app->getContainer();

// Register Twig View helper
$container['view'] = new \Slim\Views\Handlebars(
    'path/to/templates',
    'partials',
    [
        'extension' => 'hbs' // default is html
    ]);

// Define named route
$app->get('/hello/{name}', function ($request, $response, $args) {
    return $this->view->render($response, 'profile', [
        'name' => $args['name']
    ]);
})->setName('profile');

// Run app
$app->run();
```

Testing
-------

[](#testing)

```
phpunit
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Matteo Merola](https://github.com/mattmezza)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](license.md) for more information.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~6 days

Total

3

Last Release

3375d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1915989?v=4)[Matteo Merola](/maintainers/mattmezza)[@mattmezza](https://github.com/mattmezza)

---

Top Contributors

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

---

Tags

handlebarsphpslimslim-frameworktemplateviewslimtemplatingextensionsslimphphandlebarsslimframework

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mattmezza-slim-handlebars-view/health.svg)

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

###  Alternatives

[moonshine/moonshine

Laravel administration panel

1.3k239.9k76](/packages/moonshine-moonshine)[modx/revolution

MODX Revolution is a Content Management System

1.4k9.4k12](/packages/modx-revolution)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35729.6k2](/packages/telnyx-telnyx-php)[salesforce/handlebars-php

Handlebars processor for php

78760.1k13](/packages/salesforce-handlebars-php)[oat-sa/tao-core

TAO core extension

66140.1k108](/packages/oat-sa-tao-core)[dearon/slim-mustache

Mustache View Parser package for the Slim Framework

144.9k2](/packages/dearon-slim-mustache)

PHPackages © 2026

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