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

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

radicaldrew/slim-handlebars
===========================

Handlebars View Parser package for the Slim Framework based on jayc89/slim-handlebars

1361PHP

Since Jan 19Pushed 11y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

Slim Handlebars
===============

[](#slim-handlebars)

Repository built from original jayc89/slim-handlebars, kudos to jayc89 thank you for the great start. There was a bunch of things I needed with Handlebars and Slim that was not possible to do without modifying the orginal code. I added and made sure you can use custom extensions. I also added the ability to add your own helpers using a addHelper method. This repository contains a custom View class for Handlebars (). You can use the custom View class by either requiring the appropriate class in your Slim Framework bootstrap file and initialize your Slim application using an instance of the selected View class or using Composer (the recommended way).

How to Install
--------------

[](#how-to-install)

#### using [Composer](http://getcomposer.org/)

[](#using-composer)

Create a composer.json file in your project root:

```
{
    "require": {
        "radicaldrew/slim-handlebars": "dev-master"
    }
}
```

Then run the following composer command:

```
$ php composer.phar install
```

How to use
----------

[](#how-to-use)

```
