PHPackages                             kamur/cake-haml - 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. kamur/cake-haml

ActiveCakephp-plugin[Templating &amp; Views](/categories/templating)

kamur/cake-haml
===============

haml template engine for cakephp3

04PHP

Since Jun 12Pushed 8y ago1 watchersCompare

[ Source](https://github.com/kamur/CakeHaml)[ Packagist](https://packagist.org/packages/kamur/cake-haml)[ RSS](/packages/kamur-cake-haml/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

CakeHaml
========

[](#cakehaml)

[![License](https://camo.githubusercontent.com/72499efc3ba03f925402db1a41571381bf78e764f7ec402b9cf0c66b627701d9/68747470733a2f2f706f7365722e707567782e6f72672f6b616d75722f63616b652d68616d6c2f6c6963656e73652e737667)](https://packagist.org/packages/kamur/cake-haml)

CakeHaml is haml template engine for cakephp3. Using parser of [MtHaml](https://github.com/arnaud-lb/MtHaml).

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

[](#installation)

You can install this plugin into your CakePHP application using [composer](http://getcomposer.org). For existing applications you can add the following to your `composer.json` file:

```
"require": {
    "kamur/cake-haml": "dev-master"
}
```

And run `php composer.phar update`

Setup
-----

[](#setup)

Add plugin load line to `config/bootstrap.php` file:

```
+ Plugin::load('CakeHaml', ['bootstrap' => true]);
```

Set the default ViewClass on the `src/Controller/AppController.php` file:

```
  class AppController extends Controller {

+     public $viewClass = 'CakeHaml\\View\\CakeHamlView';
+     public function beforeFilter(Event $event){
+       parent::beforeFilter($event);
+       if($this->request->is('ajax')){
+         $this->setRequest($this->request->withParam('_ext', $this->viewClass));
+       }
+     }
```

You can use haml on all your view files with `.haml` extension.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 72.7% 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://avatars.githubusercontent.com/u/2298391?v=4)[Gennaro](/maintainers/kamur)[@kamur](https://github.com/kamur)

---

Top Contributors

[![k-motoyan](https://avatars.githubusercontent.com/u/2156831?v=4)](https://github.com/k-motoyan "k-motoyan (8 commits)")[![kamur](https://avatars.githubusercontent.com/u/2298391?v=4)](https://github.com/kamur "kamur (3 commits)")

### Embed Badge

![Health badge](/badges/kamur-cake-haml/health.svg)

```
[![Health](https://phpackages.com/badges/kamur-cake-haml/health.svg)](https://phpackages.com/packages/kamur-cake-haml)
```

###  Alternatives

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3861.2M](/packages/limenius-react-bundle)[area17/laravel-auto-head-tags

Laravel Auto Head Tags helps you build the list of head elements for your app

4616.0k](/packages/area17-laravel-auto-head-tags)[jelix/wikirenderer

WikiRenderer is a library to generate HTML or anything else from wiki content.

1712.2k1](/packages/jelix-wikirenderer)[webkinder/sproutset

A Composer package for handling responsive images in Roots Bedrock + Sage + Blade projects.

281.8k](/packages/webkinder-sproutset)

PHPackages © 2026

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