Looking to hire Laravel developers? Try LaraJobs

laravel-blade maintained by chr15k

Description
Use the simple and yet powerful Laravel Blade templating engine as a standalone component.
Author
Last update
2020/07/06 18:58 (dev-master)
License
Downloads
34
Tags

Comments
comments powered by Disqus

Standalone Laravel Blade templating component

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.