PHPackages                             voidable/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. voidable/laravel

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

voidable/laravel
================

Laravel integration for Voidable UI web components with Livewire + Alpine.js

00PHP

Since May 4Pushed 2mo agoCompare

[ Source](https://github.com/VoidableUI/laravel)[ Packagist](https://packagist.org/packages/voidable/laravel)[ RSS](/packages/voidable-laravel/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Voidable Laravel
================

[](#voidable-laravel)

Laravel integration for [Voidable UI](https://voidable.dev) web components with Livewire + Alpine.js.

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

[](#installation)

```
composer require voidable/laravel
```

The service provider is auto-discovered. No manual registration needed.

Publish Configuration
---------------------

[](#publish-configuration)

```
php artisan vendor:publish --tag=voidable-config
```

This publishes `config/voidable.php` where you can customize asset paths and feature flags.

Blade Directives
----------------

[](#blade-directives)

### @voidableScripts

[](#voidablescripts)

Add to your layout's `` or before ``:

```

    @voidableStyles

    {{ $slot }}

    @voidableScripts

```

This outputs a `` block that:

- Imports `@voidable/ui` (registers all void-\* custom elements)
- Imports and initializes the Alpine.js plugin from `@voidable/ui-alpine`
- Registers Livewire morph-protection hooks (if enabled)

### @voidableStyles

[](#voidablestyles)

Outputs a `` tag pointing to your compiled Voidable theme CSS.

Usage with Livewire
-------------------

[](#usage-with-livewire)

Voidable components work seamlessly with Livewire. The morph-protection hooks (enabled by default) ensure custom element state is preserved during Livewire DOM patches.

```

        Submit

        Are you sure?
        Confirm
        Cancel

```

Usage with Plain Blade + Alpine
-------------------------------

[](#usage-with-plain-blade--alpine)

Without Livewire, use Alpine.js directly for client-side interactivity:

```

        Clicked  times

```

### Tabs

[](#tabs)

```

    Overview
    Settings

Overview content
Settings content
```

### Form Controls

[](#form-controls)

```

    Save

```

Helper Function
---------------

[](#helper-function)

The `void_attrs` helper generates Alpine.js attributes for wiring Voidable events:

```

    Click me

```

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

[](#configuration)

KeyDefaultDescription`script_path``build/assets/voidable-ui.js`Path to compiled Voidable UI script`theme_path``build/assets/voidable-theme.css`Path to compiled theme CSS (null to disable)`alpine_plugin``true`Auto-register Alpine plugin in @voidableScripts`livewire_morph_protection``true`Register Livewire hooks for element stateRequirements
------------

[](#requirements)

- PHP &gt;= 8.1
- Laravel &gt;= 10.0
- `@voidable/ui` and `@voidable/ui-alpine` npm packages installed in your frontend build

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance56

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity12

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/598968?v=4)[Kaz Walker](/maintainers/KazW)[@KazW](https://github.com/KazW)

---

Top Contributors

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

### Embed Badge

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

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

PHPackages © 2026

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