PHPackages                             acidjazz/larpug - 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. acidjazz/larpug

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

acidjazz/larpug
===============

Adds the power of Pug to Laravel

v0.2.2(9y ago)425535[2 issues](https://github.com/acidjazz/larpug/issues)[1 PRs](https://github.com/acidjazz/larpug/pulls)MITPHPPHP &gt;=5.6.25

Since Sep 5Pushed 8y ago4 watchersCompare

[ Source](https://github.com/acidjazz/larpug)[ Packagist](https://packagist.org/packages/acidjazz/larpug)[ RSS](/packages/acidjazz-larpug/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

[![](media/pug128.png)](https://github.com/pugjs/pug)[![](media/and128.png)](media/and128.png)[![](media/laravel128.png)](https://laravel.com)[![](media/plus128.png)](media/plus128.png)[![](media/lumen128.png)](https://lumen.laravel.com)

Allows you to use native [Pug](https://pugjs.org/) (formerly [Jade](https://github.com/scrooloose/syntastic/pull/1704)) seamlessly in [Laravel 5](http://laravel.com) and [Lumen](http://lumen.laravel.com)

[![Total Downloads](https://camo.githubusercontent.com/0e4bca8eeef5ce806f85680c215df19d0fed1d64165a90d338639d1599600f99/68747470733a2f2f706f7365722e707567782e6f72672f616369646a617a7a2f6c61727075672f646f776e6c6f616473)](https://packagist.org/packages/acidjazz/larpug)[![Latest Stable Version](https://camo.githubusercontent.com/3e11bb220c1fcff5df48c16ac909490960188a8e829c2900a6fe900ae8620f06/68747470733a2f2f706f7365722e707567782e6f72672f616369646a617a7a2f6c61727075672f762f737461626c65)](https://packagist.org/packages/acidjazz/larpug)[![License](https://camo.githubusercontent.com/ce0046bfc289e961b08c1e7f0d280314e6e4ead3b33361c49f6b6e1e36224346/68747470733a2f2f706f7365722e707567782e6f72672f616369646a617a7a2f6c61727075672f6c6963656e7365)](https://packagist.org/packages/acidjazz/larpug)[![Build Status](https://camo.githubusercontent.com/4bcdc34a1af4843bfbdfd7bce00da4b5e1237f0f434c3d4ef5553c7de8ec7bf8/68747470733a2f2f7472617669732d63692e6f72672f616369646a617a7a2f6c61727075672e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/acidjazz/larpug)[![Dependency Status](https://camo.githubusercontent.com/874be151d8411e0c884da3bc908bc5aaad15cd496b4e4737634671e162ce61cc/68747470733a2f2f7777772e67656d6e617369756d2e636f6d2f6261646765732f6769746875622e636f6d2f616369646a617a7a2f6c61727075672e737667)](https://www.gemnasium.com/github.com/acidjazz/larpug)[![codecov](https://camo.githubusercontent.com/8b1af9b80e6d940255177cb75e3d2de831c1353f302f42d58b0d4f538b310ddc/68747470733a2f2f636f6465636f762e696f2f67682f616369646a617a7a2f6c61727075672f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/acidjazz/larpug)

[![Join the chat at https://gitter.im/acidjazz/larpug](https://camo.githubusercontent.com/abe08b740a4156153736f791393ec4da6619c4be73212e75769f52edacc0e2b5/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667)](https://gitter.im/acidjazz/larpug?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

Requirements
============

[](#requirements)

- [NodeJS v6.x](https://nodejs.org/en/)
- [npm v3.x](https://www.npmjs.com/)

Installation
============

[](#installation)

Require this package with Composer

```
composer require acidjazz/larpug
```

Install the needed node modules to run pug

```
npm i --prefix vendor/acidjazz/larpug/node/
```

Laravel
-------

[](#laravel)

Once Composer has installed or updated your packages you need to register larpug with Laravel itself. Open up config/app.php and find the providers key, towards the end of the file, and add 'larpug\\LarpugServiceProvider', to the end:

```
'providers' => [
  ...
    Larpug\ServiceProvider::class,
],
```

Lumen
-----

[](#lumen)

For usage with [Lumen](http://lumen.laravel.com), add the service provider in `bootstrap/app.php`.

```
$app->register(Larpug\ServiceProvider::class);
```

Usage
=====

[](#usage)

Using this is exactly the same way as using Blade templates, place your pug files in your `views` folder (usually in `resources/views`) and render them using `view()`

```
namespace App\Controllers;

class Pages extends Controller
{
  public function index()
  {
    return view('pages.index', ['name' => 'kevin', 'title' => 'test title']);
  }

}
```

This will look for `resources/views/pages/index.pug`

```
doctype
html(lang='en')
  head
    title Title: #{self.title}
  body
    .page.index
      .name=self.name
```

Which will render something like

```
>

    Title: test title

      Kevin

';
```

###  Health Score

30

—

LowBetter than 61% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

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

###  Release Activity

Cadence

Every ~77 days

Total

3

Last Release

3475d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/533437b7015d87ef685c7fd29533d27b0ba063e3418543b72c7b480bd2966bf5?d=identicon)[acidjazz](/maintainers/acidjazz)

---

Top Contributors

[![acidjazz](https://avatars.githubusercontent.com/u/967369?v=4)](https://github.com/acidjazz "acidjazz (59 commits)")[![droooney](https://avatars.githubusercontent.com/u/15077746?v=4)](https://github.com/droooney "droooney (1 commits)")[![gitter-badger](https://avatars.githubusercontent.com/u/8518239?v=4)](https://github.com/gitter-badger "gitter-badger (1 commits)")

---

Tags

bladejadelaravellumenobjectuspuglaravellumenjadepug

### Embed Badge

![Health badge](/badges/acidjazz-larpug/health.svg)

```
[![Health](https://phpackages.com/badges/acidjazz-larpug/health.svg)](https://phpackages.com/packages/acidjazz-larpug)
```

###  Alternatives

[pug-php/pug

HAML-like template engine for PHP

393396.2k58](/packages/pug-php-pug)[shipu/themevel

Theme and asset management for laravel

34833.0k1](/packages/shipu-themevel)[ytake/laravel-smarty

Smarty template engine for Laravel and Lumen

87410.8k](/packages/ytake-laravel-smarty)[phug/phug

Pug (ex-Jade) facade engine for PHP, HTML template engine structured by indentation

66304.3k14](/packages/phug-phug)[ktquez/laravel-tinymce

TinyMCE editor for Laravel and Lumen Framework

2525.4k](/packages/ktquez-laravel-tinymce)[talesoft/tale-pug

A clean, lightweight and easy-to-use templating engine for PHP based on Pug, formerly Jade

309.5k3](/packages/talesoft-tale-pug)

PHPackages © 2026

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