chr15k / laravel-blade
Use the simple and yet powerful Laravel Blade templating engine as a standalone component.
Installs: 34
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/chr15k/laravel-blade
Requires
- php: ^7.2.5
- illuminate/view: ^7.18
Requires (Dev)
- phpunit/phpunit: ^9.2
This package is auto-updated.
Last update: 2022-11-16 03:30:12 UTC
README
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.