PHPackages                             alexdover/blade-set - 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. alexdover/blade-set

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

alexdover/blade-set
===================

A very simple blade extension which allows variables to be set.

v1.0.4(8y ago)2358.0k51MITPHPPHP &gt;=5.3.0

Since Jun 9Pushed 8y ago1 watchersCompare

[ Source](https://github.com/alexdover/blade-set)[ Packagist](https://packagist.org/packages/alexdover/blade-set)[ RSS](/packages/alexdover-blade-set/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (4)Dependencies (1)Versions (6)Used By (1)

Laravel 4 Blade @set operator
-----------------------------

[](#laravel-4-blade-set-operator)

A very simple blade extension which allows variables to be set.

Current version is for Laravel 4.2.

If you wish to use with Laravel 4.1, please use v1.0.2

### Example

[](#example)

```
@set('my_variable', $existing_variable)
```

You can then use the variable `$my_variable` in the template.

You might choose to fetch a bunch of models from your template, for example

```
@set('my_model_list', MyModel::where('something', '=', 1)->paginate(10))
```

### Why?

[](#why)

Compare

```

```

to

```
@set('my_model_list', MyModel::where('something', '=', 1)->paginate(10))
```

I felt that the use of the `@set` was a more elegant solution in the context of blade templates.

### Installation

[](#installation)

Require this package in your `composer.json` and update composer. This will download the package.

```
"alexdover/blade-set": "1.*"
```

After updating composer, add the ServiceProvider to the providers array in `app/config/app.php`

```
'Alexdover\BladeSet\BladeSetServiceProvider',
```

All done!

### Licence

[](#licence)

You can use this package under the [MIT license](http://opensource.org/licenses/MIT)

### Feedback

[](#feedback)

If you have any questions, feature requests or constructive ctritcism then please get in touch.

Twitter - [@alexdover](http://twitter.com/alexdover)

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 83.3% 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 ~303 days

Total

5

Last Release

3149d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9a3375606b7b9d8320ea9682b7eec5b8c5c8fd80d2328b272ed698aaa53ea7dc?d=identicon)[alexdover](/maintainers/alexdover)

---

Top Contributors

[![alexdover](https://avatars.githubusercontent.com/u/1886367?v=4)](https://github.com/alexdover "alexdover (10 commits)")[![Piterden](https://avatars.githubusercontent.com/u/5930429?v=4)](https://github.com/Piterden "Piterden (2 commits)")

---

Tags

laravelblade

### Embed Badge

![Health badge](/badges/alexdover-blade-set/health.svg)

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

###  Alternatives

[robsontenorio/mary

Gorgeous UI components for Livewire powered by daisyUI and Tailwind

1.5k454.7k15](/packages/robsontenorio-mary)[stijnvanouplines/blade-country-flags

A package to easily make use of country flags in your Laravel Blade views.

26307.2k6](/packages/stijnvanouplines-blade-country-flags)[technikermathe/blade-lucide-icons

A package to easily make use of Lucide icons in your Laravel Blade views.

18299.2k7](/packages/technikermathe-blade-lucide-icons)[saade/blade-iconsax

A package to easily make use of Iconsax in your Laravel Blade views.

21138.5k](/packages/saade-blade-iconsax)[mckenziearts/blade-untitledui-icons

A package to easily make use of UntitledUI icons in your Laravel Blade views.

16104.9k5](/packages/mckenziearts-blade-untitledui-icons)[afatmustafa/blade-hugeicons

A package to easily make use of Hugeicons(Free version) in your Laravel Blade views.

13129.0k3](/packages/afatmustafa-blade-hugeicons)

PHPackages © 2026

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