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

ActiveKirby-plugin[Templating &amp; Views](/categories/templating)

beebmx/kirby-blade
==================

Blade template for Kirby

6.2.8(5mo ago)151.8k31MITPHPPHP ^8.2

Since Jan 23Pushed 5mo ago2 watchersCompare

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

READMEChangelog (10)Dependencies (7)Versions (47)Used By (1)

Kirby Blade
===========

[](#kirby-blade)

Kirby Blade use Laravel `illuminate/view` and `jenssegers/blade` packages.

This package enables [Laravel Blade](https://laravel.com/docs/12.x/blade) for your own Kirby applications.

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

[](#installation)

### Installation with composer

[](#installation-with-composer)

```
composer require beebmx/kirby-blade

```

What is Blade?
--------------

[](#what-is-blade)

According to Laravel Blade documentation is:

> Blade is the simple, yet powerful templating engine provided with Laravel. Unlike other popular PHP templating engines, Blade does not restrict you from using plain PHP code in your views. In fact, all Blade views are compiled into plain PHP code and cached until they are modified, meaning Blade adds essentially zero overhead to your application. Blade view files use the .blade.php file extension.

Usage
-----

[](#usage)

You can use the power of Blade like [Layouts](https://laravel.com/docs/12.x/blade#layouts-using-template-inheritance), [Sub-Views](https://laravel.com/docs/12.x/blade#including-subviews), [Directives](#Directives), your Custom [If Statements](#if-statements) and [Blade components](#components).

All the documentation about Laravel Blade is in the [official documentation](https://laravel.com/docs/12.x/blade).

### Conflicts

[](#conflicts)

Since Kirby `3.7.0` it's important to add the helpers from `illuminate/support` to your root `index.php` file in your `public` directory.

```
const KIRBY_HELPER_E = false;
// or
define('KIRBY_HELPER_DUMP', false);
```

This line should be before your `autoload.php` file. The result file should be like:

```
