EspecializaTi / blade-laravel by EspecializaTi

Use basic blade laravel
54
2
1
Package Data
Maintainer Username: EspecializaTi
Maintainer Contact: carlos@especializati.com.br (Carlos Ferreira)
Package Create Date: 2016-01-04
Package Last Update: 2016-01-04
Language: PHP
License: MIT
Last Refreshed: 2024-04-22 03:08:43
Package Statistics
Total Downloads: 54
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 2
Total Watchers: 1
Total Forks: 0
Total Open Issues: 0

Installation

Install package composer "composer require eti/laravel-blade" composer.json:

{
	"require": {
	    "eti/laravel-blade": "^1.0"
	}
}

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 ETI\BLADE\Blade;

$views = __DIR__ . '/app/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 documentation: https://laravel.com/docs/5.1/blade