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

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

mejta/standalone-blade
======================

v5.6.1(8y ago)264MITPHP

Since Jan 14Pushed 8y agoCompare

[ Source](https://github.com/mejta/standalone-blade)[ Packagist](https://packagist.org/packages/mejta/standalone-blade)[ RSS](/packages/mejta-standalone-blade/feed)WikiDiscussions master Synced 2w ago

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

Standalone Laravel Blade template engine
========================================

[](#standalone-laravel-blade-template-engine)

This project provide Blade as a standalone library that works with 5.6 Laravel Blade. See blade documentation:

Compatible with
---------------

[](#compatible-with)

- PHP &gt;= 7.1

Instalation
-----------

[](#instalation)

```
composer require mejta/standalone-blade
```

Usage
-----

[](#usage)

```
use Mejta\StandaloneBlade;

$viewDirs = [
    __DIR__ . '/views',
];

$cacheDir = __DIR__ . '/cache';

$engine = new StandaloneBlade($viewDirs, $cacheDir);

// Define custom directives
$engine->directive('datetime', function($expression) {
    return "";
});

// Define custom if statements
$engine->if('env', function($environment) {
    return app()->environment($environment);
});

// Share variables with all templates
$engine->share('key', 'value');

// Render template
echo $engine->render('page-template', [
    'title' => 'Page title',
    'content' => 'Some example page content',
]);
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity65

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

Total

3

Last Release

2932d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/498441?v=4)[Daniel Mejta](/maintainers/mejta)[@mejta](https://github.com/mejta)

---

Top Contributors

[![mejta](https://avatars.githubusercontent.com/u/498441?v=4)](https://github.com/mejta "mejta (8 commits)")

---

Tags

blade-templatelaravelphplaravelblade

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[blade-ui-kit/blade-icons

A package to easily make use of icons in your Laravel Blade views.

2.5k39.5M385](/packages/blade-ui-kit-blade-icons)[tightenco/jigsaw

Simple static sites with Laravel's Blade.

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

Laravel administration panel

1.3k239.9k76](/packages/moonshine-moonshine)[spatie/laravel-blade-comments

Add debug comments to your rendered output

179332.0k](/packages/spatie-laravel-blade-comments)[hasinhayder/tyro-dashboard

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

5452.7k](/packages/hasinhayder-tyro-dashboard)[radic/blade-extensions

Laravel package providing additional Blade extensions: foreach (with $loop data like twig), break, continue, set,array (multiline), etc

264322.7k5](/packages/radic-blade-extensions)

PHPackages © 2026

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