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 1w 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

24

—

LowBetter than 30% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 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

627d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17400997?v=4)[Nurul Fikri Falindi](/maintainers/fikrifalindi)[@fikrifalindi](https://github.com/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

[moonshine/moonshine

Laravel administration panel

1.3k268.2k89](/packages/moonshine-moonshine)[tallstackui/tallstackui

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

731189.9k16](/packages/tallstackui-tallstackui)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45844.8k1](/packages/pressbooks-pressbooks)[illuminate/console

The Illuminate Console package.

13046.6M7.3k](/packages/illuminate-console)[hasinhayder/tyro-dashboard

Tyro Dashboard - Beautiful admin dashboard for managing Tyro roles, privileges, users, and settings

5495.1k](/packages/hasinhayder-tyro-dashboard)

PHPackages © 2026

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