2017 © Pedro Peláez
 

library laravel-blade

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

image

spatie/laravel-blade

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

  • Monday, July 3, 2017
  • by Spatie
  • Repository
  • 4 Watchers
  • 38 Stars
  • 1,296 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 6 Versions
  • 2 % Grown

The README.md

THIS PACKAGE IS UNMAINTAINED, (*1)

Use Laravel's blade outside Laravel

This package is a slightly modified version of 50onred/laravel-blade., (*2)

Latest Version on Packagist Software License, (*3)

Installation

composer require spatie/laravel-blade

Postcardware

You're free to use this package (it's MIT-licensed), but if it makes it to your production environment you are required to send us a postcard from your hometown, mentioning which of our package(s) you are using., (*4)

Our address is: Spatie, Samberstraat 69D, 2060 Antwerp, Belgium., (*5)

The best postcards will get published on the open source page on our website., (*6)

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 Spatie\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, (*7)

The Versions

03/07 2017

dev-master

9999999-dev https://github.com/spatie/laravel-blade

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

  Sources   Download

MIT

The Requires

 

laravel blade

03/07 2017

1.0.2

1.0.2.0 https://github.com/spatie/laravel-blade

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

  Sources   Download

MIT

The Requires

 

laravel blade

03/07 2017

1.0.1

1.0.1.0 https://github.com/spatie/laravel-blade

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

  Sources   Download

MIT

The Requires

 

laravel blade

24/05 2015

1.0.0

1.0.0.0 https://github.com/spatie/laravel-blade

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

  Sources   Download

MIT

The Requires

 

laravel blade

10/09 2014

0.1.3

0.1.3.0

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

  Sources   Download

MIT

The Requires

 

laravel blade

10/09 2014

0.1.2

0.1.2.0

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

  Sources   Download

MIT

The Requires

 

laravel blade