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 2w ago

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 46% 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

3420d 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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k555.0M2.8k](/packages/aws-aws-sdk-php)[oat-sa/tao-core

TAO core extension

65147.9k151](/packages/oat-sa-tao-core)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k832.6k52](/packages/neuron-core-neuron-ai)[moonshine/moonshine

Laravel administration panel

1.3k268.2k88](/packages/moonshine-moonshine)[tempest/framework

The PHP framework that gets out of your way.

2.3k37.6k20](/packages/tempest-framework)[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.

36826.2k2](/packages/telnyx-telnyx-php)

PHPackages © 2026

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