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

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

ichihara-yamato/blade
=====================

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

v2.0.2(1y ago)04MITPHPPHP ^8.1

Since Mar 15Pushed 1y agoCompare

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

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

Blade
=====

[](#blade)

[![Latest Stable Version](https://camo.githubusercontent.com/97e14c51d4c8f9b02fc7a998148799683f2c508e90a5bdcc94dd68a58f975a98/687474703a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f69636869686172612d79616d61746f2f626c6164652e737667)](https://packagist.org/packages/ichihara-yamato/blade) [![Coverage Status](https://camo.githubusercontent.com/113378afba8d48b7d233c37f5c2c5a3e88c9e11eff36401ae984116a11c57d5e/687474703a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f69636869686172612d79616d61746f2f626c6164652e737667)](https://coveralls.io/r/ichihara-yamato/blade)

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

[![](https://camo.githubusercontent.com/c0d74604d702cdf23cc901c756f8ec4b9443f7c8a35cd3fa13f9f266b809d6a0/68747470733a2f2f6a656e737365676572732e636f6d2f7374617469632f6d656469612f626c616465322e706e67)](https://camo.githubusercontent.com/c0d74604d702cdf23cc901c756f8ec4b9443f7c8a35cd3fa13f9f266b809d6a0/68747470733a2f2f6a656e737365676572732e636f6d2f7374617469632f6d656469612f626c616465322e706e67)

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

[](#installation)

Install using composer:

```
composer require ichihara-yamato/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 .

```
use IchiharaYamato\Blade\Blade;

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

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

Alternatively you can use the shorthand method `render`:

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

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.

Integrations
------------

[](#integrations)

- [Phalcon Slayer Framework](https://github.com/phalconslayer/slayer) comes out of the box with Blade.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance46

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 56.9% 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

Unknown

Total

1

Last Release

421d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2a07c40df37e1a931be65e4bc6417b2308eb24e9a130b8301300de100b1d4e53?d=identicon)[ichihara-yamato](/maintainers/ichihara-yamato)

---

Top Contributors

[![jenssegers](https://avatars.githubusercontent.com/u/194377?v=4)](https://github.com/jenssegers "jenssegers (41 commits)")[![daison12006013](https://avatars.githubusercontent.com/u/4581415?v=4)](https://github.com/daison12006013 "daison12006013 (12 commits)")[![ichihara-yamato](https://avatars.githubusercontent.com/u/99705612?v=4)](https://github.com/ichihara-yamato "ichihara-yamato (8 commits)")[![wimpichjo](https://avatars.githubusercontent.com/u/203976988?v=4)](https://github.com/wimpichjo "wimpichjo (4 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")[![TullariS](https://avatars.githubusercontent.com/u/7660175?v=4)](https://github.com/TullariS "TullariS (1 commits)")[![amoutonbrady](https://avatars.githubusercontent.com/u/17355226?v=4)](https://github.com/amoutonbrady "amoutonbrady (1 commits)")[![yuhengliang](https://avatars.githubusercontent.com/u/388165?v=4)](https://github.com/yuhengliang "yuhengliang (1 commits)")[![edgarsn](https://avatars.githubusercontent.com/u/6625918?v=4)](https://github.com/edgarsn "edgarsn (1 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)")

---

Tags

laravelbladetemplatetemplating

### Embed Badge

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

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

###  Alternatives

[tightenco/jigsaw

Simple static sites with Laravel's Blade.

2.2k438.5k29](/packages/tightenco-jigsaw)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[duncan3dc/blade

Use Laravel Blade templates without the full Laravel framework

160499.5k24](/packages/duncan3dc-blade)[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.

44643.1k1](/packages/pressbooks-pressbooks)[leitsch/kirby-blade

Enable Laravel Blade Template Engine for Kirby 4 and Kirby 5

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

PHPackages © 2026

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