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

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

penobit/blade
=============

The standalone version of Laravel's Blade templating engine for use outside of Laravel.

v1.6(4y ago)112MITPHPPHP &gt;=7.0

Since May 31Pushed 4y ago1 watchersCompare

[ Source](https://github.com/penobit/blade)[ Packagist](https://packagist.org/packages/penobit/blade)[ GitHub Sponsors](https://github.com/penobit)[ Fund](https://opencollective.com/penobit-blade)[ RSS](/packages/penobit-blade/feed)WikiDiscussions master Synced 1mo ago

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

Blade
=====

[](#blade)

The standalone version of [Laravel's Blade templating engine](https://laravel.com/docs/5.8/blade) for use outside of Laravel.

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

[](#installation)

Install using composer:

```
composer require penobit/blade
```

Usage
-----

[](#usage)

Create a Blade instance by passing it the folder(s) where your view files are located, and a cache folder. Render a template by calling the `make` method. More information about the Blade templating engine can be found on [original laravel's blade documentation](http://laravel.com/docs/5.8/blade.)

```
use Penobit\Blade\Blade;

$blade = new Blade('viewsDirectory', 'cacheDirectory');

echo $blade->make('homepage', ['author' => 'Penobit', 'variable2' => 'variable value'])->render();
```

Alternatively you can use the shorthand method `render`:

```
echo $blade->render('homepage', ['author' => 'Penobit', 'variable2' => 'variable value']);
```

You can also extend Blade using the `directive()` function:

```
$blade->directive('datetime', function ($expression) {
    return "";
});
```

Which allows you to use the following in your blade template:

```
Current date: @datetime($date)
```

The Blade instances passes all methods to the internal view factory. So methods such as `exists`, `file`, `share`, `composer`, `auth`, `creator`, etc are available as well. Check out the [original documentation](https://laravel.com/docs/5.8/views) for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Total

2

Last Release

1771d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8cbcaf2d9ebcdc5282f9dde8aeb9e6cff2d8bd8735b21669fb242e3a47dd7642?d=identicon)[penobit](/maintainers/penobit)

---

Top Contributors

[![penobit](https://avatars.githubusercontent.com/u/60283818?v=4)](https://github.com/penobit "penobit (3 commits)")

---

Tags

laravelbladetemplateviewrender

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[jenssegers/blade

The standalone version of Laravel's Blade templating engine for use outside of Laravel.

8661.2M109](/packages/jenssegers-blade)[spatie/laravel-blade-comments

Add debug comments to your rendered output

177325.5k](/packages/spatie-laravel-blade-comments)[fiskhandlarn/blade

A library for using Laravel Blade templates in WordPress/WordPlate.

365.8k](/packages/fiskhandlarn-blade)[leitsch/kirby-blade

Enable Laravel Blade Template Engine for Kirby 4 and Kirby 5

219.2k](/packages/leitsch-kirby-blade)[johnturingan/laravel-fly-view

Render Blade templates from string mark-up.

163.9k](/packages/johnturingan-laravel-fly-view)

PHPackages © 2026

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