LaravelPackages.net
Acme Inc.
Toggle sidebar
50onred/laravel-blade

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

401
4
1.3
About 50onred/laravel-blade

50onred/laravel-blade is a Laravel package for use the simple and yet powerful laravel blade templating engine as a standalone component.. It currently has 4 GitHub stars and 401 downloads on Packagist (latest version 1.3). Install it with composer require 50onred/laravel-blade. Discover more Laravel packages by 50onred or browse all Laravel packages to compare alternatives.

Last updated

Installation

The package can be installed via Composer by requiring the "50onred/laravel-blade": "1.3" package in your project's composer.json.

[
	"require": {
	    "50onred/laravel-blade": "1.3"
	}
]

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 'vendor/autoload.php';

use FiftyOnRed\Blade\Blade;

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

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

You can use all blade features as described in the Laravel 4 documentation: http://laravel.com/docs/templates#blade-templating

Star History Chart