PHPackages                             nsrosenqvist/blade-compiler - 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. nsrosenqvist/blade-compiler

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

nsrosenqvist/blade-compiler
===========================

Simple class that compiles Laravel Blade files

7.0.0(6y ago)237114MITPHPPHP ^7.0

Since Mar 14Pushed 6y ago3 watchersCompare

[ Source](https://github.com/nsrosenqvist/blade-compiler)[ Packagist](https://packagist.org/packages/nsrosenqvist/blade-compiler)[ Docs](https://github.com/nsrosenqvist/blade-compiler)[ RSS](/packages/nsrosenqvist-blade-compiler/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (10)Dependencies (1)Versions (11)Used By (4)

Blade Compiler
==============

[](#blade-compiler)

This is a simple PHP class that wraps Laravel's Blade compiler into a reusable component. This abstraction makes it very convenient to use the Blade templating engine in other projects that aren't built with Laravel.

**Sample code**

```
use NSRosenqvist\Blade\Compiler;

$cacheDir = "storage/cache/views";
$baseDirs = [
    'app/views',
    'module/views',
];

$blade = new Compiler($cacheDir, $baseDirs);

$index = $blade->render('index')
// Only works when baseDirs are set (note that just
// 'index.blade.php' wouldn't work since Blade would
// interpret that as 'index/blade/php')

$index = $blade->render('/path/to/index.blade.php')
// Absolute paths always works
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Recently: every ~256 days

Total

10

Last Release

2308d ago

Major Versions

1.3.0 → 5.0.02018-03-08

5.0.0 → 6.0.02020-03-05

6.0.0 → 7.0.02020-03-05

### Community

Maintainers

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

---

Top Contributors

[![nsrosenqvist](https://avatars.githubusercontent.com/u/1303475?v=4)](https://github.com/nsrosenqvist "nsrosenqvist (10 commits)")

---

Tags

laravel-bladetemplate compiler

### Embed Badge

![Health badge](/badges/nsrosenqvist-blade-compiler/health.svg)

```
[![Health](https://phpackages.com/badges/nsrosenqvist-blade-compiler/health.svg)](https://phpackages.com/packages/nsrosenqvist-blade-compiler)
```

###  Alternatives

[moonshine/moonshine

Laravel administration panel

1.3k239.9k76](/packages/moonshine-moonshine)[tallstackui/tallstackui

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

721160.4k12](/packages/tallstackui-tallstackui)[tightenco/jigsaw

Simple static sites with Laravel's Blade.

2.3k449.3k30](/packages/tightenco-jigsaw)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9772.3M122](/packages/roots-acorn)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[livewire/blaze

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

718537.6k30](/packages/livewire-blaze)

PHPackages © 2026

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