New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

philo/laravel-blade

Use the simple and yet powerful Laravel Blade templating engine as a standalone component.
691,336 355
Install
composer require philo/laravel-blade
Latest Version:v3.1
Laravel:5
Older releases:4
License:MIT
Last Updated:Dec 21, 2022
Links: GitHub  ·  Packagist
Maintainer: PhiloNL

Installation (Blade Laravel 5.1)

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

{
	"require": {
	    "philo/laravel-blade": "3.*"
	}
}

Installation (Blade Laravel 4)

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

{
	"require": {
	    "philo/laravel-blade": "2.*"
	}
}

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 Philo\Blade\Blade;

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

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

You can use all blade features as described in the Laravel 5.1 documentation: https://laravel.com/docs/5.1/blade

Related Packages

wapmorgan/morphos-blade

Adds @plural, @name, @numeral, @ordinal and @money tags to Blade for Russian plu...

90,701 33
alexdover/blade-set

A very simple blade extension which allows variables to be set.

57,996 23
railroad/bladesora

A blade template package for musora.

57,117 1
styde/blade-pagination

Laravel's pagination with Blade templating support

14,489 70
aschmelyun/laravel-blade

A standalone component for using the Laravel Blade templating engine. Forked fro...

1,317 2

Version History

Version Released Laravel License
v3.1 ~5 MIT
v3.0 ~5 MIT
v2.1 4.2.* MIT
2.0 4.2.* MIT
v1.0 4.1.* MIT