chr15k/laravel-blade

This package is abandoned and no longer maintained. No replacement package was suggested.

Use the simple and yet powerful Laravel Blade templating engine as a standalone component.

0.1.3 2020-07-06 16:58 UTC

This package is auto-updated.

Last update: 2022-11-16 03:30:12 UTC


README

Latest Stable Version Latest Unstable Version Total Downloads License

This package allows you to use Laravel's simple yet powerful Blade templating engine as a standalone component.

Installation

composer require chr15k/laravel-blade

Usage

use Chr15k\Blade\Blade;

$views = 'views'; // Directory containing your blade files
$cache = 'cache'; // Directory for cached views

$blade = new Blade($views, $cache);

// views/test.blade.php
echo $blade
    ->view()
    ->make('test', ['foo' => 'bar']);

Documentation

You can use all the features of blade as per the documentation: https://laravel.com/docs/7.x/blade

Testing

You can run the tests with:

vendor/bin/phpunit tests

License

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