duncan3dc / blade
Use Laravel Blade templates without the full Laravel framework
4.17.0
2026-07-01 18:29 UTC
Requires
- php: ^7.3 || ^8.0
- illuminate/contracts: ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0 || ^13.0
- illuminate/events: ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0 || ^13.0
- illuminate/filesystem: ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0 || ^13.0
- illuminate/support: ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0 || ^13.0
- illuminate/view: ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0 || ^13.0
Requires (Dev)
- duncan3dc/object-intruder: ^0.3.0 || ^1.0
- maglnet/composer-require-checker: ^2.0 || ^3.0
- mockery/mockery: ^1.4
- nikic/php-parser: ^4.18
- phpstan/phpstan: ^1.12
- phpstan/phpstan-mockery: ^1.1
- phpstan/phpstan-phpunit: ^1.4
- phpunit/phpunit: ^8.5.36
- squizlabs/php_codesniffer: ^4.0
This package is auto-updated.
Last update: 2026-07-01 21:01:11 UTC
README
Use Laravel Blade templates as a standalone component without the full Laravel framework
Full documentation is available at http://duncan3dc.github.io/blade/
PHPDoc API documentation is also available at http://duncan3dc.github.io/blade/api/
Quick Examples
Output the view from /var/www/views/index.blade.php:
use duncan3dc\Laravel\BladeInstance; $blade = new BladeInstance("/var/www/views", "/var/www/cache/views"); echo $blade->render("index");
There is also a static class available:
use duncan3dc\Laravel\Blade; echo Blade::render("index");
Read more at http://duncan3dc.github.io/blade/
Changelog
A Changelog has been available since version 2.0.0
Where to get help
Found a bug? Got a question? Just not sure how something works?
Please create an issue and I'll do my best to help out.
Alternatively you can catch me on Twitter