Skip to content
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.
/ laravel-blade Public archive

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

License

Notifications You must be signed in to change notification settings

chr15k/laravel-blade

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published