phptransformers / blade by MacFJA

Laravel Blade implementation of PhpTransformer.
42
0
3
Package Data
Maintainer Username: MacFJA
Package Create Date: 2016-03-05
Package Last Update: 2017-10-05
Language: PHP
License: MIT
Last Refreshed: 2024-11-17 03:00:08
Package Statistics
Total Downloads: 42
Monthly Downloads: 1
Daily Downloads: 0
Total Stars: 0
Total Watchers: 3
Total Forks: 0
Total Open Issues: 0

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.