Laravel Blade support for PHPTransformers.
Via Composer
$ composer require phptransformers/blade
$engine = new BladeTransformer();
echo $engine->render('Hello, {{ $name }}!', array('name' => 'phptransformers'));
$engine = new BladeTransformer(array(
'cache-dir' => 'path/to/the/cache', // Default to the system temporary directory
));
// ...
$blade = new Illuminate\View\Compilers\BladeCompiler(
new Illuminate\Filesystem\Filesystem(),
sys_get_temp_dir()
);
$engine = new BladeTransformer(array(
'blade' => $blade
));
$ composer test
The MIT License (MIT). Please see License File for more information.