PHPackages                             bfg/livewire - 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. bfg/livewire

ActiveBfg-app

bfg/livewire
============

Finder for the Livewire

1.4.0(3y ago)2701MITPHPPHP ^7.2.5|^8.0

Since Jul 25Pushed 3y ago2 watchersCompare

[ Source](https://github.com/bfg-s/livewire)[ Packagist](https://packagist.org/packages/bfg/livewire)[ RSS](/packages/bfg-livewire/feed)WikiDiscussions master Synced 6d ago

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

Extension livewire
==================

[](#extension-livewire)

Extension for the [`Livewire`](https://laravel-livewire.com/) package. Adds finder for components and extend with:

- [Alpine](https://alpinejs.dev/)
- [Turbolink](https://github.com/turbolinks/turbolinks)
- [SweetAlert2](https://sweetalert2.github.io/)
- [Toastr](https://github.com/CodeSeven/toastr)

Install
-------

[](#install)

```
composer required bfg/livewire
```

Usage
-----

[](#usage)

### View

[](#view)

```
@extends('livewire::document')

@section('head')
    Main

@endsection

@section('body')
    @yield('content')
@endsection

@section('footer')

@endsection
```

### Turbolinks

[](#turbolinks)

- @turbolinks(false) - [Disabling Turbolinks on Specific Links](https://github.com/turbolinks/turbolinks#disabling-turbolinks-on-specific-links)
- @turbolinksEval - [Working with Script Elements](https://github.com/turbolinks/turbolinks#working-with-script-elements)
- @turbolinksPermanent - [Persisting Elements Across Page Loads](https://github.com/turbolinks/turbolinks#persisting-elements-across-page-loads)
- @turbolinksTrackReload - [Reloading When Assets Change](https://github.com/turbolinks/turbolinks#reloading-when-assets-change)
- @turbolinksActionReplace - [Application Visits](https://github.com/turbolinks/turbolinks#application-visits)

Access:

```
window.Turbolinks.visit("/edit", { action: "replace" })
```

### SweetAlert2

[](#sweetalert2)

Access:

```
window.Swal.fire('Any fool can use a computer')
```

### Toastr

[](#toastr)

Access:

```
window.Toastr.info('Are you the 6 fingered man?')
```

### Livewire Events

[](#livewire-events)

Simple Swal access:

```
class MyComponent extends \Livewire\Component
{
    ...
    public function submit() {
        $this->emit('swal', [
            'icon' => 'error',
            'title' => 'Oops...',
            'text' => 'Something went wrong!',
            'footer' => 'Why do I have this issue?'
        ]);
    }
    ...
}
```

Swal confirm access:

```
...
    $this->emit('swal:confirm', [
        'title' => 'Do you want to save the changes?',
        'text' => 'Save changes',
        'confirmEvent' => 'livewireEvent', // You livewire event
        'confirmParams' => ['user_id' => 1], // You livewire event parameters
    ]);
...
```

Swal message access:

```
...
    $this->emit('swal:success', [
        'title' => 'Changes saved!',
        'text' => 'All you changes is saved'
    ]);
    // Or
    $this->emit('swal:success', [ // Can be: success, error, warning, info
        'Changes saved!',
        'All you changes is saved'
    ]);
...
```

Toastr message access:

```
...
    $this->emit('toastr:success', 'Changes saved!');
    $this->emit('toastr:success', [ // Can be: success, error, warning, info
        'Changes saved!',
        'All you changes is saved',
        ['timeOut' => 5000]
    ]);
...
```

Turbolinks visit access:

```
...
    $this->emit('visit', '/edit');
    // Or
    $this->emit('visit', [
        '/edit', ['action' => 'replace']
    ]);
...
```

### Extending

[](#extending)

For inject folder you can do this:

```
Bfg\Livewire\LivewireComponentsFinder::directory('Admin\\Pages', __DIR__.'/../Pages');
```

```
LivewireComponentsFinder::directory(string $namespace, string $path);
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

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

Total

7

Last Release

1288d ago

Major Versions

0.0.1 → 1.0.02021-12-11

PHP version history (2 changes)0.0.1PHP &gt;=8.0.0

1.0.0PHP ^7.2.5|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/59b2d162a30938ac2c3c56340ebea07a6778a3e1c86cb70b5bc28b69a1c3f04d?d=identicon)[bfg](/maintainers/bfg)

---

Top Contributors

[![Xsaven](https://avatars.githubusercontent.com/u/1726771?v=4)](https://github.com/Xsaven "Xsaven (12 commits)")

---

Tags

laravellivewireextension

### Embed Badge

![Health badge](/badges/bfg-livewire/health.svg)

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

###  Alternatives

[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4195.3M84](/packages/livewire-volt)[spatie/livewire-filepond

Upload files using Filepond in Livewire components

306452.7k3](/packages/spatie-livewire-filepond)[yajra/laravel-datatables-export

Laravel DataTables Queued Export Plugin.

341.9M3](/packages/yajra-laravel-datatables-export)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

116.6k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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