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

Getting Started

Instance

Static

Directives

Usage

View the API Documentation for this class

Output a basic view (from views/index.blade.php)

echo $blade->render("index");

Multiple Paths

Check multiple directories for a view (from /www/views/index.blade.php if it exists, otherwise /www/custom/views/index.blade.php)

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

$blade->addPath("/www/custom/views");

echo $blade->render("index");