Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/duncan3dc/blade
Use Blade templates without the full Laravel framework
https://github.com/duncan3dc/blade
blade-template laravel-framework php templating
Last synced: about 1 month ago
JSON representation
Use Blade templates without the full Laravel framework
- Host: GitHub
- URL: https://github.com/duncan3dc/blade
- Owner: duncan3dc
- License: apache-2.0
- Created: 2014-09-28T19:46:39.000Z (about 10 years ago)
- Default Branch: main
- Last Pushed: 2024-07-23T11:12:00.000Z (4 months ago)
- Last Synced: 2024-09-28T19:22:41.545Z (about 2 months ago)
- Topics: blade-template, laravel-framework, php, templating
- Language: PHP
- Homepage:
- Size: 859 KB
- Stars: 144
- Watchers: 6
- Forks: 36
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
blade
=====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/](http://duncan3dc.github.io/blade/api/namespaces/duncan3dc.Laravel.html)[![release](https://poser.pugx.org/duncan3dc/blade/version.svg)](https://packagist.org/packages/duncan3dc/blade)
[![build](https://github.com/duncan3dc/blade/workflows/.github/workflows/buildcheck.yml/badge.svg?branch=main)](https://github.com/duncan3dc/blade/actions?query=branch%3Amain+workflow%3A.github%2Fworkflows%2Fbuildcheck.yml)
[![coverage](https://codecov.io/gh/duncan3dc/blade/graph/badge.svg)](https://codecov.io/gh/duncan3dc/blade)Quick Examples
--------------Output the view from `/var/www/views/index.blade.php`:
```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:
```php
use duncan3dc\Laravel\Blade;echo Blade::render("index");
```_Read more at http://duncan3dc.github.io/blade/_
Changelog
---------
A [Changelog](CHANGELOG.md) has been available since version 2.0.0Where to get help
-----------------
Found a bug? Got a question? Just not sure how something works?
Please [create an issue](//github.com/duncan3dc/blade/issues) and I'll do my best to help out.
Alternatively you can catch me on [Twitter](https://twitter.com/duncan3dc)## 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.](https://tidelift.com/subscription/pkg/packagist-duncan3dc-blade?utm_source=packagist-duncan3dc-blade&utm_medium=referral&utm_campaign=readme)