Skip to content
Laravel Blade support for PHPTransformers.
PHP Smarty
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
tests
.gitattributes
.gitignore
CONTRIBUTING.md
LICENSE.md
README.md
composer.json
phpcs.xml.dist
phpunit.xml.dist

README.md

Blade for PHPTransformers

Laravel Blade support for PHPTransformers.

Install

Via Composer

$ composer require phptransformers/blade

Usage

$engine = new BladeTransformer();
echo $engine->render('Hello, {{ $name }}!', array('name' => 'phptransformers'));

Options

$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
));

Testing

$ composer test

License

The MIT License (MIT). Please see License File for more information.

You can’t perform that action at this time.