PHPackages                             milon/blade-variable - 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. milon/blade-variable

ActivePackage

milon/blade-variable
====================

Declaring variable in blade file

5.2.1(10y ago)101482GPL-3.0PHPPHP &gt;=5.5.9

Since Feb 1Pushed 4y ago1 watchersCompare

[ Source](https://github.com/milon/blade-variable)[ Packagist](https://packagist.org/packages/milon/blade-variable)[ RSS](/packages/milon-blade-variable/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (7)Used By (0)

[![Packagist Downloads](https://camo.githubusercontent.com/278027cdfb02397d04fa77490f76dd656ad529b7cbda399d8346d35e94ecba15/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d696c6f6e2f626c6164652d7661726961626c652e737667)](https://packagist.org/packages/milon/blade-variable)[![Stable version](https://camo.githubusercontent.com/3cda814ce55fc88938da5c89f9e63e096d8f357e54c2b932f4a3931c9aeb3430/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d696c6f6e2f626c6164652d7661726961626c652e737667)](https://packagist.org/packages/milon/blade-variable)[![License](https://camo.githubusercontent.com/de5b7fe1323b3eca93e785878cc52b4a36642c7e92df6e314324b1a3a7f8614c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d696c6f6e2f626c6164652d7661726961626c652e737667)](https://packagist.org/packages/milon/blade-variable)

blade-variable
==============

[](#blade-variable)

Declaring variables in Laravel blade files.

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

[](#installation)

Add this line to `composer.json` file-

```
require: {
    ...,
    "milon/laravel-blade": "~5.2"
}

```

For Laravel 5.1 try these lines instead-

```
require: {
    ...,
    "milon/laravel-blade": "~5.1"
}

```

Then from your terminal run this command-

```
composer update

```

After that add this line to `providers` array on `config/app.php` file-

```
'providers' => [
...,
Milon\BladeVariable\BladeVariableServiceProvider::class,
]

```

Usage
-----

[](#usage)

You can define any variable in blade file like this-

```
@var('name', 'value')

```

Then you can use this like any other normal php variable-

```
{{ $name }}

```

Copyright
---------

[](#copyright)

Nuruzzaman Milon

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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 ~0 days

Total

5

Last Release

3756d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/00e844b80719a8c2ed1a3c19a2caac697fdd5443d4109d8388fc75482054f8a1?d=identicon)[milon](/maintainers/milon)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/milon-blade-variable/health.svg)

```
[![Health](https://phpackages.com/badges/milon-blade-variable/health.svg)](https://phpackages.com/packages/milon-blade-variable)
```

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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