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

Getting Started

Instance

Static

Directives

Setup

View the API Documentation for this class

Paths

The paths used for view templates and for cached files are set by passing them to the constructor:

use duncan3dc\Laravel\Blade;

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

Contract

The BladeInstance class follows the contracts philosophy of Laravel and implements the Factory interface.

This means that you should be able to use BladeInstance anywhere that is currently coded to accept a regular Laravel view factory.