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

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

beebmx/blade
============

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

v1.9.0(11mo ago)53.3k↓50%31MITPHPPHP ^8.2CI passing

Since Aug 29Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/beebmx/blade)[ Packagist](https://packagist.org/packages/beebmx/blade)[ RSS](/packages/beebmx-blade/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (5)Versions (19)Used By (1)

[![Build Status](https://camo.githubusercontent.com/3c7a392dcbec8960cc1fcac3ee7a1b6359cf3a5d03acd16a487027a9f8c7c908/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f626565626d782f626c6164652f74657374732e796d6c3f6272616e63683d6d61696e)](https://github.com/beebmx/blade/actions)[![Total Downloads](https://camo.githubusercontent.com/2fa02608da8d93f624934fc0aba9e6812513fd60b82d6627b9b2ad39983562c2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f626565626d782f626c616465)](https://packagist.org/packages/beebmx/blade)[![Latest Stable Version](https://camo.githubusercontent.com/e717856ad23677a8db27e393f4b02eb43845af180b406c64a272d0dcdec68805/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626565626d782f626c616465)](https://packagist.org/packages/beebmx/blade)[![License](https://camo.githubusercontent.com/343883728f306acf7cac94115a5b166aeb2d60fe421bcaacd299ddc2d532e5d3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f626565626d782f626c616465)](https://packagist.org/packages/beebmx/blade)

Blade
=====

[](#blade)

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

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

[](#installation)

Install using composer:

```
composer require beebmx/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 [Laravel Blade](https://laravel.com/docs/12.x/blade).

```
use Beebmx\Blade\Blade;

$blade = new Blade('views', 'cache');

echo $blade->make('homepage', ['name' => 'John Doe'])->render();
```

Alternatively you can use the shorthand method `render`:

```
echo $blade->render('homepage', ['name' => 'John Doe']);
```

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` and `creator` are available as well. Check out the [original documentation](https://laravel.com/docs/12.x/views) for more information.

Testing
-------

[](#testing)

```
composer test
```

Credits
-------

[](#credits)

- Original repository [jenssegers/blade](https://github.com/jenssegers/blade)
- Fernando Gutierrez [@beebmx](https://github.com/beebmx)
- [All Contributors](../../contributors)

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance52

Moderate activity, may be stable

Popularity26

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity84

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~234 days

Total

18

Last Release

334d ago

PHP version history (5 changes)v1.2.0PHP &gt;=7.0

v1.5.0PHP ^8.0

v1.6.0PHP ^8.0.2

v1.7.0PHP ^8.1

v1.8.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/434a3fd09c4701e824184e720b3d2fd97814ed8d1275417f6762c411bf146328?d=identicon)[beebmx](/maintainers/beebmx)

---

Top Contributors

[![jenssegers](https://avatars.githubusercontent.com/u/194377?v=4)](https://github.com/jenssegers "jenssegers (38 commits)")[![beebmx](https://avatars.githubusercontent.com/u/2191576?v=4)](https://github.com/beebmx "beebmx (24 commits)")[![daison12006013](https://avatars.githubusercontent.com/u/4581415?v=4)](https://github.com/daison12006013 "daison12006013 (12 commits)")[![IonBazan](https://avatars.githubusercontent.com/u/1985514?v=4)](https://github.com/IonBazan "IonBazan (1 commits)")[![lesichkovm](https://avatars.githubusercontent.com/u/7744963?v=4)](https://github.com/lesichkovm "lesichkovm (1 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")[![amoutonbrady](https://avatars.githubusercontent.com/u/17355226?v=4)](https://github.com/amoutonbrady "amoutonbrady (1 commits)")[![TullariS](https://avatars.githubusercontent.com/u/7660175?v=4)](https://github.com/TullariS "TullariS (1 commits)")[![dogukanoksuz](https://avatars.githubusercontent.com/u/32539161?v=4)](https://github.com/dogukanoksuz "dogukanoksuz (1 commits)")[![edgarsn](https://avatars.githubusercontent.com/u/6625918?v=4)](https://github.com/edgarsn "edgarsn (1 commits)")

---

Tags

laravelbladetemplateviewrenderkirbykirby-pluginkirby5kirby3kirby4

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[jenssegers/blade

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

8661.2M109](/packages/jenssegers-blade)[leitsch/kirby-blade

Enable Laravel Blade Template Engine for Kirby 4 and Kirby 5

219.2k](/packages/leitsch-kirby-blade)[beebmx/kirby-blade

Blade template for Kirby

151.8k2](/packages/beebmx-kirby-blade)[fiskhandlarn/blade

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

365.8k](/packages/fiskhandlarn-blade)

PHPackages © 2026

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