There is no license information available for the latest version (5.0.0) of this package.

Use the simple and yet powerful Laravel Blade templating engine as a standalone component.

Maintainers

Package info

github.com/tahaghafuri/blade

pkg:composer/tahaghafuri/blade

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 1

5.0.0 2026-05-31 08:38 UTC

This package is auto-updated.

Last update: 2026-05-31 08:44:28 UTC


README

Installation

composer require tahaghafuri/blade

Usage

<?php

/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader
| for our application. We just need to utilize it! We'll require it
| into the script here so that we do not have to worry about the
| loading of any our classes "manually". Feels great to relax.
|
*/

require __DIR__.'/vendor/autoload.php';

use TAG\Blade\Blade;
use Illuminate\Events\Dispatcher;

$views = __DIR__ . '/views';
$cache = __DIR__ . '/cache';

$blade = new Blade($views, $cache, new Dispatcher);
echo $blade->view()->make('hello')->render();