PHPackages                             brainlight/brainlight-for-laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. brainlight/brainlight-for-laravel

ActiveLibrary[Templating &amp; Views](/categories/templating)

brainlight/brainlight-for-laravel
=================================

Laravel support for Brainlight template engine.

v1.1.0(3y ago)012MITPHPPHP ^8.1

Since Mar 7Pushed 3y ago1 watchersCompare

[ Source](https://github.com/GiromettaMarco/brainlight-for-laravel)[ Packagist](https://packagist.org/packages/brainlight/brainlight-for-laravel)[ Docs](https://github.com/GiromettaMarco/brainlight-for-laravel)[ RSS](/packages/brainlight-brainlight-for-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Brainlight for Laravel
======================

[](#brainlight-for-laravel)

Brainlight is a lightweight templating system with minimal logic pattern.

This is Laravel support for the [Brainlight Php](https://github.com/GiromettaMarco/brainlight-php) template engine.

- [Requirements](#requirements)
- [Installation](#installation)
- [Configuration](#configuration)
- [Usage](#usage)
- [License](#license)

Requirements
------------

[](#requirements)

- PHP &gt;= 8.1
- Laravel ^8.0|^9.0|^10.0

Installation
------------

[](#installation)

Require Brainlight for Laravel package in your Laravel project using the following command:

```
composer require brainlight/brainlight-for-laravel

```

By default, Brainlight for Laravel stores its cache in `storage_path('brain')`. If you don't plan to change this path, create a new `brain` directory in your `storage` folder.

Probably, you also want to create a `.gitignore` file in this new directory:

```
*
!.gitignore

```

Configuration
-------------

[](#configuration)

Publish the configuration file with the command:

```
php artisan vendor:publish --provider="BrainlightPhp\BrainlightForLaravel\BrainlightServiceProvider"

```

Then edit the configuration file that you've just created under: `config/brainlight.php`

Make reference to the [Brainlight PHP documentation](https://github.com/GiromettaMarco/brainlight-php) for options customization.

Usage
-----

[](#usage)

You can render Brainlight template files the same way as a Blade one:

```
return view('template', ['content' => 'Hello world.']);
```

template.brain:

```
{{content}}

```

Make reference to the [Brainlight documentation](https://github.com/GiromettaMarco/brainlight) for templates syntax.

License
-------

[](#license)

Brainlight for Laravel is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~3 days

Total

2

Last Release

1157d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1666c97dcce04d0845da98d085f90ea97428b35382f0585ea2a3d56fc06c6419?d=identicon)[Girometta Marco](/maintainers/Girometta%20Marco)

---

Top Contributors

[![GiromettaMarco](https://avatars.githubusercontent.com/u/14976285?v=4)](https://github.com/GiromettaMarco "GiromettaMarco (4 commits)")

---

Tags

phplaraveltemplatingbrainlight

### Embed Badge

![Health badge](/badges/brainlight-brainlight-for-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/brainlight-brainlight-for-laravel/health.svg)](https://phpackages.com/packages/brainlight-brainlight-for-laravel)
```

###  Alternatives

[andreia/filament-nord-theme

A minimalist Arctic Nord theme for FilamentPHP

13334.7k2](/packages/andreia-filament-nord-theme)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
