PHPackages                             arindam/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. [Templating &amp; Views](/categories/templating)
4. /
5. arindam/blade-variable

ActiveLaravel-package[Templating &amp; Views](/categories/templating)

arindam/blade-variable
======================

A laravel package define variables in blade template

v1.0.0(2y ago)26MITPHPPHP &gt;=5.4.0

Since Apr 19Pushed 2y ago1 watchersCompare

[ Source](https://github.com/dev-arindam-roy/laravel-blade-variable-package)[ Packagist](https://packagist.org/packages/arindam/blade-variable)[ RSS](/packages/arindam-blade-variable/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

Laravel Blade Variable Declaration
==================================

[](#laravel-blade-variable-declaration)

### A laravel package define variables in blade template

[](#a-laravel-package-define-variables-in-blade-template)

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

[](#installation)

> **No dependency on PHP version and LARAVEL version**

### STEP 1: Run the composer command:

[](#step-1-run-the-composer-command)

```
composer require arindam/blade-variable
```

### STEP 2: Laravel without auto-discovery:

[](#step-2-laravel-without-auto-discovery)

If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php

> In providers section

```
Arindam\BladeVariable\BladeVariableServiceProvider::class,
```

That's it!!, All Done! Now it ready to use
------------------------------------------

[](#thats-it-all-done-now-it-ready-to-use)

### How to use it? How to declare a valiable in blade page?

[](#how-to-use-it-how-to-declare-a-valiable-in-blade-page)

```
//declare it
@var('myname', 'Arindam')

//use it
{{ $myname }}
```

```
//declare it
@var('myAge', 36)

//use it
Age is : {{ $myAge }}
```

license:
--------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/dev-arindam-roy/laravel-blade-variable-package/blob/master/LICENSE) for more information.

Post Issues: if found any
-------------------------

[](#post-issues-if-found-any)

If have any issue please [write me](https://github.com/dev-arindam-roy/laravel-blade-variable-package/issues).

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

804d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/58600558?v=4)[devarindam](/maintainers/devarindam)[@devarindam](https://github.com/devarindam)

---

Top Contributors

[![dev-arindam-roy](https://avatars.githubusercontent.com/u/24665327?v=4)](https://github.com/dev-arindam-roy "dev-arindam-roy (3 commits)")

---

Tags

arindam-roydevarindamdev-arindam-royblade-variable

### Embed Badge

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

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

###  Alternatives

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3851.2M](/packages/limenius-react-bundle)[area17/laravel-auto-head-tags

Laravel Auto Head Tags helps you build the list of head elements for your app

4616.1k](/packages/area17-laravel-auto-head-tags)[jelix/wikirenderer

WikiRenderer is a library to generate HTML or anything else from wiki content.

1712.3k1](/packages/jelix-wikirenderer)[webkinder/sproutset

A Composer package for handling responsive images in Roots Bedrock + Sage + Blade projects.

282.2k](/packages/webkinder-sproutset)

PHPackages © 2026

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