Skip to content
The view engine from laravel
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
README.md
composer.json
composer.lock

README.md

Introduction

This package is a standalone version of Laravel Blade.

Usage standalone blade

<?php

use Stackkit\BladeStandalone\Blade;

require 'vendor/autoload.php';

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

$contents = $blade->render('welcome', ['name' => 'John Doe']);

echo $contents;

Docs

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 and are typically stored in the resources/views directory.

Docs

You can’t perform that action at this time.