PHPackages                             fkrfld/laravel-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. fkrfld/laravel-haml

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

fkrfld/laravel-haml
===================

Wraps MtHaml for ease use in Laravel

1.1.0(1y ago)035MITPHP

Since Nov 28Pushed 1y ago1 watchersCompare

[ Source](https://github.com/fikrifalindi/laravelhaml)[ Packagist](https://packagist.org/packages/fkrfld/laravel-haml)[ RSS](/packages/fkrfld-laravel-haml/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

Laravel Haml
============

[](#laravel-haml)

A small package that adds support for compiling Haml templates to Laravel via [MtHaml](https://github.com/arnaud-lb/MtHaml).

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

[](#installation)

1. Add it to your composer.json (`"fkrfld/laravel-haml": "3.0"`) and do a composer install.
2. Add the service provider to your app.php config file providers: `'Fkrfld\LaravelHaml\ServiceProvider'`.

Configuration
-------------

[](#configuration)

You can set [MtHaml](https://github.com/arnaud-lb/MtHaml) environment, options, and filters manually. To do so:

Publish the config file with `php artisan vendor:publish` and edit it at /config/haml.php.

For instance, to turn off auto-escaping:

```
'mthaml' => array(
	'environment' => 'php',
	'options' => array(
		'enable_escaper' => false,
	),
	'filters' => array(),
),

```

Usage
-----

[](#usage)

Laravel-Haml registers the ".haml", ".haml.php", ".haml.blade", and ".haml.blade.php" extension with Laravel and forwards compile requests on to MtHaml. It compiles your Haml templates in the same way as Blade templates; the compiled template is put in app/storage/views. Thus, you don't suffer compile times on every page load.

In other words, just put your Haml files in the regular views directory and name them like "whatever.haml". You reference them in Laravel like normal:

- **Laravel 5** : `view('home.whatever')` for `resources/views/home/whatever.haml.blade`

The Haml view files can work side-by-side with regular PHP views. To use Blade templating within your Haml, just name the files with ".haml.blade" extensions.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

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

Total

2

Last Release

527d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a1b3ccb40baaf3c7c51d706d29a1ca5116f486638726e578b6f9d473943bda61?d=identicon)[fikrifalindi](/maintainers/fikrifalindi)

---

Top Contributors

[![fikrifalindi](https://avatars.githubusercontent.com/u/17400997?v=4)](https://github.com/fikrifalindi "fikrifalindi (2 commits)")

### Embed Badge

![Health badge](/badges/fkrfld-laravel-haml/health.svg)

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

###  Alternatives

[rcrowe/twigbridge

Adds the power of Twig to Laravel

9105.9M50](/packages/rcrowe-twigbridge)[tightenco/jigsaw

Simple static sites with Laravel's Blade.

2.2k438.5k29](/packages/tightenco-jigsaw)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[moonshine/moonshine

Laravel administration panel

1.3k217.1k59](/packages/moonshine-moonshine)[livewire/blaze

A tool for optimizing Blade component performance by folding them into parent templates

688221.3k17](/packages/livewire-blaze)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

703141.0k7](/packages/tallstackui-tallstackui)

PHPackages © 2026

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