| Package Data | |
|---|---|
| Maintainer Username: | sblawrie |
| Maintainer Contact: | me@philohermans.com (Philo Hermans) |
| Package Create Date: | 2014-04-18 |
| Package Last Update: | 2014-05-28 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-25 03:01:54 |
| Package Statistics | |
|---|---|
| Total Downloads: | 401 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 4 |
| Total Watchers: | 13 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
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"
}
]
<?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