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

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

duncan3dc/blade
===============

Use Laravel Blade templates without the full Laravel framework

4.17.0(1mo ago)160514.9k↓47%36[2 issues](https://github.com/duncan3dc/blade/issues)20Apache-2.0PHPPHP ^7.3 || ^8.0CI passing

Since Sep 28Pushed 1mo ago5 watchersCompare

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

READMEChangelogDependencies (27)Versions (39)Used By (20)

blade
=====

[](#blade)

Use Laravel Blade templates as a standalone component without the full Laravel framework

Full documentation is available at
PHPDoc API documentation is also available at [http://duncan3dc.github.io/blade/api/](http://duncan3dc.github.io/blade/api/namespaces/duncan3dc.Laravel.html)

[![release](https://camo.githubusercontent.com/bc36b7453a7f9b84bdd93aa4738084e80a6a7f9ab5346d41afbc89d9d883f7fe/68747470733a2f2f706f7365722e707567782e6f72672f64756e63616e3364632f626c6164652f76657273696f6e2e737667)](https://packagist.org/packages/duncan3dc/blade)[![build](https://github.com/duncan3dc/blade/actions/workflows/buildcheck.yaml/badge.svg)](https://github.com/duncan3dc/blade/actions/workflows/buildcheck.yaml?query=branch%3Amain)[![coverage](https://camo.githubusercontent.com/77b1856f5eda33d2f7515a8c7b9274eacd2a1be08e6f4e10b06b755e2bb15068/68747470733a2f2f636f6465636f762e696f2f67682f64756e63616e3364632f626c6164652f67726170682f62616467652e737667)](https://codecov.io/gh/duncan3dc/blade)

Quick Examples
--------------

[](#quick-examples)

Output the view from `/var/www/views/index.blade.php`:

```
use duncan3dc\Laravel\BladeInstance;

$blade = new BladeInstance("/var/www/views", "/var/www/cache/views");

echo $blade->render("index");
```

There is also a static class available:

```
use duncan3dc\Laravel\Blade;

echo Blade::render("index");
```

*Read more at *

Changelog
---------

[](#changelog)

A [Changelog](CHANGELOG.md) has been available since version 2.0.0

Where to get help
-----------------

[](#where-to-get-help)

Found a bug? Got a question? Just not sure how something works?
Please [create an issue](//github.com/duncan3dc/blade/issues) and I'll do my best to help out.
Alternatively you can catch me on [Twitter](https://twitter.com/duncan3dc)

###  Health Score

68

—

FairBetter than 99% of packages

Maintenance90

Actively maintained with recent releases

Popularity54

Moderate usage in the ecosystem

Community33

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 96.1% 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 ~122 days

Recently: every ~215 days

Total

36

Last Release

47d ago

Major Versions

1.1.3 → 2.0.02015-02-04

2.2.1 → 3.0.02015-12-27

3.4.0 → 4.0.02017-08-30

PHP version history (8 changes)1.0.0PHP &gt;=5.4.0

2.2.0PHP &gt;=5.5.0

3.0.0PHP &gt;=5.6.0

3.4.0PHP ^5.6|^7.0

4.0.0PHP ^7.0

4.2.0PHP ^7.1

4.7.0PHP ^7.2

4.11.0PHP ^7.3 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/11dc66042513f11d1c99b1e6763f25dca84a3ff31cdbea3972b9b804a3d3d5e9?d=identicon)[duncan3dc](/maintainers/duncan3dc)

---

Top Contributors

[![duncan3dc](https://avatars.githubusercontent.com/u/546811?v=4)](https://github.com/duncan3dc "duncan3dc (174 commits)")[![GeoSot](https://avatars.githubusercontent.com/u/22406063?v=4)](https://github.com/GeoSot "GeoSot (1 commits)")[![jawngee](https://avatars.githubusercontent.com/u/44449?v=4)](https://github.com/jawngee "jawngee (1 commits)")[![marcwiest](https://avatars.githubusercontent.com/u/815624?v=4)](https://github.com/marcwiest "marcwiest (1 commits)")[![motian](https://avatars.githubusercontent.com/u/2382215?v=4)](https://github.com/motian "motian (1 commits)")[![oyhdd](https://avatars.githubusercontent.com/u/16769351?v=4)](https://github.com/oyhdd "oyhdd (1 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")

---

Tags

blade-templatelaravel-frameworkphptemplatinglaraveltemplatetemplatingviews

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[moonshine/moonshine

Laravel administration panel

1.3k268.2k89](/packages/moonshine-moonshine)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45844.8k1](/packages/pressbooks-pressbooks)[illuminate/view

The Illuminate View package.

13047.7M2.5k](/packages/illuminate-view)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9922.4M146](/packages/roots-acorn)[laravel/ai

The official AI SDK for Laravel.

1.1k4.6M319](/packages/laravel-ai)

PHPackages © 2026

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