duncan3dc / blade
Use Laravel Blade templates without the full Laravel framework
Installs: 465 385
Dependents: 33
Suggesters: 2
Security: 0
Stars: 145
Watchers: 6
Forks: 36
Open Issues: 3
Requires
- php: ^7.3 || ^8.0
- illuminate/contracts: ^8.0 || ^9.0 || ^10.0 || ^11.0
- illuminate/events: ^8.0 || ^9.0 || ^10.0 || ^11.0
- illuminate/filesystem: ^8.0 || ^9.0 || ^10.0 || ^11.0
- illuminate/view: ^8.0 || ^9.0 || ^10.0 || ^11.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: ^0.12.100
- phpstan/phpstan-mockery: ^0.12.5
- phpstan/phpstan-phpunit: ^0.12.11
- phpunit/phpunit: ^8.5.36
- squizlabs/php_codesniffer: ^3.6
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
duncan3dc/blade for enterprise
Available as part of the Tidelift Subscription
The maintainers of duncan3dc/blade and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more.