PHPackages                             endel/slim-lightncandy-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. endel/slim-lightncandy-view

ActiveLibrary

endel/slim-lightncandy-view
===========================

Slim Framework view helper built on top of the Handlebars/Mustache template engines, via lightncandy.

91053[2 issues](https://github.com/endel/slim-lightncandy-view/issues)PHP

Since May 7Pushed 9y ago4 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Slim Framework Lightncandy View
===============================

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

[![Build Status](https://camo.githubusercontent.com/d80807a948c53b6c47ce9ca1ee0bc23ddcf0f3510c63f1be171215c1413b9b4d/68747470733a2f2f7472617669732d63692e6f72672f656e64656c2f736c696d2d6c696768746e63616e64792d766965772e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/endel/slim-lightncandy-view)

This is a Slim Framework view helper built on top of the [Lightncandy](https://github.com/zordius/lightncandy) templating component, which is an extremely fast PHP implementation of [handlebars](http://handlebarsjs.com/) and [mustache](http://mustache.github.io/).

You can use this component to create and render templates in your Slim Framework application.

Requires Slim 3.x.x

Install
-------

[](#install)

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

```
$ composer require endel/slim-lightncandy-view
```

Usage
-----

[](#usage)

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

// Register Lightncandy View helper
$app->register(new \Slim\Views\Lightncandy('path/to/templates', [
    'helpers' => array(...)
    'block_helpers' => array(...)
]));

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

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

Examples
--------

[](#examples)

Take a look at the [example](example) directory for usage examples.

Testing
-------

[](#testing)

```
phpunit
```

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

[](#contributing)

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

Credits
-------

[](#credits)

- [Endel Dreyer](https://github.com/endel)
- [Zordius](https://github.com/zordius)

License
-------

[](#license)

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

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9be4eac04f2b81f8077124dfbf653488512557fa5193e6d57c473d7ec9b25fd6?d=identicon)[endel](/maintainers/endel)

---

Top Contributors

[![endel](https://avatars.githubusercontent.com/u/130494?v=4)](https://github.com/endel "endel (10 commits)")[![SergeAx](https://avatars.githubusercontent.com/u/3264530?v=4)](https://github.com/SergeAx "SergeAx (1 commits)")[![thisislawatts](https://avatars.githubusercontent.com/u/472589?v=4)](https://github.com/thisislawatts "thisislawatts (1 commits)")

---

Tags

handlebarsmustacheslim

### Embed Badge

![Health badge](/badges/endel-slim-lightncandy-view/health.svg)

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

PHPackages © 2026

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