Download the PHP package brainlight/brainlight-for-laravel without Composer
On this page you can find all versions of the php package brainlight/brainlight-for-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download brainlight/brainlight-for-laravel
More information about brainlight/brainlight-for-laravel
Files in brainlight/brainlight-for-laravel
Package brainlight-for-laravel
Short Description Laravel support for Brainlight template engine.
License MIT
Homepage https://github.com/GiromettaMarco/brainlight-for-laravel
Informations about the package brainlight-for-laravel
Brainlight for Laravel
Brainlight is a lightweight templating system with minimal logic pattern.
This is Laravel support for the Brainlight Php template engine.
- Requirements
- Installation
- Configuration
- Usage
- License
Requirements
- PHP >= 8.1
- Laravel ^8.0|^9.0|^10.0
Installation
Require Brainlight for Laravel package in your Laravel project using the following command:
By default, Brainlight for Laravel stores its cache in . If you don't plan to change this path, create a new directory in your folder.
Probably, you also want to create a file in this new directory:
Configuration
Publish the configuration file with the command:
Then edit the configuration file that you've just created under:
Make reference to the Brainlight PHP documentation for options customization.
Usage
You can render Brainlight template files the same way as a Blade one:
template.brain:
Make reference to the Brainlight documentation for templates syntax.
License
Brainlight for Laravel is open-sourced software licensed under the MIT license
All versions of brainlight-for-laravel with dependencies
brainlight/brainlight-php Version ^1.1
laravel/framework Version ^8.0|^9.0|^10.0