PHPackages                             pboivin/laravel-blade-bind-attributes - 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. pboivin/laravel-blade-bind-attributes

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

pboivin/laravel-blade-bind-attributes
=====================================

Attribute unpacking for Laravel Blade component tags

v0.2.0(3y ago)26MITPHPPHP &gt;=8.1

Since Oct 31Pushed 3y agoCompare

[ Source](https://github.com/pboivin/laravel-blade-bind-attributes)[ Packagist](https://packagist.org/packages/pboivin/laravel-blade-bind-attributes)[ Docs](https://github.com/pboivin/laravel-blade-bind-attributes)[ RSS](/packages/pboivin-laravel-blade-bind-attributes/feed)WikiDiscussions main Synced 1mo ago

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

Attribute array unpacking for Laravel Blade component tags
==========================================================

[](#attribute-array-unpacking-for-laravel-blade-component-tags)

[![Build Status](https://github.com/pboivin/laravel-blade-bind-attributes/workflows/tests/badge.svg)](https://github.com/pboivin/laravel-blade-bind-attributes/actions)[![Latest Stable Version](https://camo.githubusercontent.com/a90c855675756f69dc8e09d66a52a7ab01bb2395a3a76c62a2701468c65629ca/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70626f6976696e2f6c61726176656c2d626c6164652d62696e642d61747472696275746573)](https://packagist.org/packages/pboivin/laravel-blade-bind-attributes)[![License](https://camo.githubusercontent.com/d29020eeaabd0877ecbd0962ee24dc8202df6331b50f3a3f47f8f59030d22c3b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f70626f6976696e2f6c61726176656c2d626c6164652d62696e642d61747472696275746573)](https://packagist.org/packages/pboivin/laravel-blade-bind-attributes)

⚠ EXPERIMENTAL ⚠

This package adds support for `@bind` attributes in Blade component tags. The new attribute allows you to extract all keys from a given array as component props:

```
@php
    $header = [
        'title' => 'Lorem ipsum',
        'secondaryTitle' => 'Dolor sit amet',
    ];
@endphp

```

This is equivalent to:

```

```

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

[](#requirements)

- PHP &gt;= 8.1
- Laravel &gt;= 9.x

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

[](#installation)

```
composer require pboivin/laravel-blade-bind-attributes

php artisan view:clear

```

Caveats
-------

[](#caveats)

With class-based components, make sure to include a `@props()` directive in your template, even when you are defining the props on the component class:

`app/View/Components/Header.php :`

```
class Header extends Component
{
    public function __construct(
        public $title = 'Hello',
        public $secondaryTitle = 'World'
    ){}

    public function render()
    {
        return view('components.header');
    }
}
```

`resources/views/components/header.blade.php :`

```
@props([
    'title',
    'secondaryTitle',
])

    {{ $title }}
    {{ $secondaryTitle }}
    {{-- ... --}}

```

Development
-----------

[](#development)

#### Test suite ([phpunit](https://phpunit.de/))

[](#test-suite-phpunit)

```
composer run test

```

#### Code formatting ([pint](https://laravel.com/docs/9.x/pint))

[](#code-formatting-pint)

```
composer run format

```

License
-------

[](#license)

This is open-sourced software licensed under the [MIT license](LICENSE.md).

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

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

Total

2

Last Release

1172d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c628fdf7c95af7c4f84ec8867232fdb75a92dca434c327616abc45071b190dfc?d=identicon)[pboivin](/maintainers/pboivin)

---

Top Contributors

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

---

Tags

bladelaravelpackagephpphplaravelpackageblade

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/pboivin-laravel-blade-bind-attributes/health.svg)

```
[![Health](https://phpackages.com/badges/pboivin-laravel-blade-bind-attributes/health.svg)](https://phpackages.com/packages/pboivin-laravel-blade-bind-attributes)
```

###  Alternatives

[igaster/laravel-theme

Laravel Themes: Asset &amp; Views folder per theme. Theme inheritance. Blade integration and more...

5161.2M12](/packages/igaster-laravel-theme)

PHPackages © 2026

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