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

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

jantinnerezo/livewire-alert
===========================

This package provides a simple alert utilities for your livewire components.

v4.2.0(1mo ago)8131.4M↓31.1%9120MITPHPPHP ^8.1CI passing

Since Jun 14Pushed 1mo ago12 watchersCompare

[ Source](https://github.com/jantinnerezo/livewire-alert)[ Packagist](https://packagist.org/packages/jantinnerezo/livewire-alert)[ Docs](https://github.com/jantinnerezo/livewire-alert)[ RSS](/packages/jantinnerezo-livewire-alert/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (10)Dependencies (18)Versions (57)Used By (20)

Livewire Alert
==============

[](#livewire-alert)

[![Build Status](https://github.com/jantinnerezo/livewire-alert/workflows/PHPUnit/badge.svg)](https://github.com/jantinnerezo/livewire-alert/actions) [![PHPStan Analysis](https://github.com/jantinnerezo/livewire-alert/workflows/PHPStan/badge.svg)](https://github.com/jantinnerezo/livewire-alert/actions) [![Total Downloads](https://camo.githubusercontent.com/db9ef6c8c93844db073b8b94fb0dd6f0cf73abe69536b4ef85bcefdcc363bdac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a616e74696e6e6572657a6f2f6c697665776972652d616c657274)](https://packagist.org/packages/jantinnerezo/livewire-alert) [![License](https://camo.githubusercontent.com/e5fa98ea0d699972ee30dabd1200cb6400afdd0844fd752d2bf2464993531574/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6a616e74696e6e6572657a6f2f6c697665776972652d616c657274)](https://packagist.org/packages/jantinnerezo/livewire-alert)

Livewire Alert is a Laravel Livewire package that brings SweetAlert2 notifications to your Livewire components through a fluent, chainable API. Configure and trigger beautiful, interactive alerts with a clean PHP interface — no JavaScript required.

📖 Documentation
---------------

[](#-documentation)

Full documentation, live examples, and an interactive playground are hosted at:

### 👉

[](#-httpslivewire-alertjantinnerezome)

Every feature — icons, positions, toasts, timers, buttons, confirm dialogs, loading alerts, in-place updates, inputs, flash alerts, images, custom classes, dependency injection and more — is documented there with copy-pasteable snippets and runnable demos.

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

[](#requirements)

- PHP 8.1 or higher
- Laravel 10.x or higher
- Livewire 3.x or 4.x
- Composer

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

[](#installation)

Require the package with Composer:

```
composer require jantinnerezo/livewire-alert
```

Optionally publish the config file:

```
php artisan vendor:publish --tag=livewire-alert:config
```

Install SweetAlert2 via npm or yarn:

```
npm install sweetalert2
```

```
yarn add sweetalert2
```

Then import it in `resources/js/app.js`:

```
import Swal from 'sweetalert2'

window.Swal = Swal
```

Or include it via CDN before the closing `` tag:

```

```

### Filament

[](#filament)

Register SweetAlert2 as a Filament asset in your `AppServiceProvider`:

```
use Filament\Support\Facades\FilamentAsset;
use Illuminate\Support\Facades\Vite;
use Filament\Support\Assets\Js;

public function boot()
{
    FilamentAsset::register([
        Js::make('sweetalert2', Vite::asset('resources/js/sweetalert2.js')),
        // Or via CDN:
        // Js::make('sweetalert2', 'https://cdn.jsdelivr.net/npm/sweetalert2@11'),
    ]);
}
```

Quick taste
-----------

[](#quick-taste)

```
use Jantinnerezo\LivewireAlert\Facades\LivewireAlert;

public function save()
{
    LivewireAlert::title('Changes saved!')
        ->success()
        ->show();
}
```

For everything else — head to the [documentation site](https://livewire-alert.jantinnerezo.me).

Looking for v3?
---------------

[](#looking-for-v3)

The last v3 release was [v3.0.3](https://github.com/jantinnerezo/livewire-alert/releases/tag/v3.0.3) (March 11, 2024). v4 is a major refactor introducing the fluent Facade API, dependency injection, and many more features. For v3:

```
composer require jantinnerezo/livewire-alert:^3.0
```

Upgrading to v4 is recommended for new and ongoing projects.

Testing
-------

[](#testing)

```
composer test
```

Contributors
------------

[](#contributors)

[ ![](https://camo.githubusercontent.com/e978d61fe2810c4f6100376ec7cf5078fa530545434ae3ad928340c62dd2fb17/68747470733a2f2f636f6e747269622e726f636b732f696d6167653f7265706f3d6a616e74696e6e6572657a6f2f6c697665776972652d616c657274)](https://github.com/jantinnerezo/livewire-alert/graphs/contributors)Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

71

—

ExcellentBetter than 100% of packages

Maintenance90

Actively maintained with recent releases

Popularity64

Solid adoption and visibility

Community39

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 77.4% 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 ~54 days

Total

41

Last Release

49d ago

Major Versions

1.2.0 → 2.02020-11-02

2.2.7 → v3.02023-07-21

v3.0.2 → 4.0.x-dev2024-04-07

v3.0.3 → v4.x-dev2025-03-04

PHP version history (6 changes)v1.0PHP ^7.1

2.1PHP ^7.1|^7.2|^7.3|^7.4|^8.0

2.1.9PHP ^7.4|^8.0

2.2.7PHP ^7.4|^8.0|^8.1|^8.2

v3.0.1PHP ^8.1|^8.2

v4.x-devPHP ^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/29738837?v=4)[Jantinn Erezo](/maintainers/jantinnerezo)[@jantinnerezo](https://github.com/jantinnerezo)

---

Top Contributors

[![jantinnerezo](https://avatars.githubusercontent.com/u/29738837?v=4)](https://github.com/jantinnerezo "jantinnerezo (106 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (10 commits)")[![gpibarra](https://avatars.githubusercontent.com/u/21188012?v=4)](https://github.com/gpibarra "gpibarra (3 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (2 commits)")[![sarokse](https://avatars.githubusercontent.com/u/109381?v=4)](https://github.com/sarokse "sarokse (2 commits)")[![moneya](https://avatars.githubusercontent.com/u/7353773?v=4)](https://github.com/moneya "moneya (2 commits)")[![vlados](https://avatars.githubusercontent.com/u/46914?v=4)](https://github.com/vlados "vlados (2 commits)")[![nam-co](https://avatars.githubusercontent.com/u/3951529?v=4)](https://github.com/nam-co "nam-co (1 commits)")[![yardsoul](https://avatars.githubusercontent.com/u/9072978?v=4)](https://github.com/yardsoul "yardsoul (1 commits)")[![cjaoude](https://avatars.githubusercontent.com/u/4311607?v=4)](https://github.com/cjaoude "cjaoude (1 commits)")[![yoeunes](https://avatars.githubusercontent.com/u/10859693?v=4)](https://github.com/yoeunes "yoeunes (1 commits)")[![dylanmichaelryan](https://avatars.githubusercontent.com/u/46534379?v=4)](https://github.com/dylanmichaelryan "dylanmichaelryan (1 commits)")[![falconeri](https://avatars.githubusercontent.com/u/9047407?v=4)](https://github.com/falconeri "falconeri (1 commits)")[![jigar-dhulla](https://avatars.githubusercontent.com/u/3132291?v=4)](https://github.com/jigar-dhulla "jigar-dhulla (1 commits)")[![juanjoballesteros](https://avatars.githubusercontent.com/u/62188143?v=4)](https://github.com/juanjoballesteros "juanjoballesteros (1 commits)")[![mohamedsabil83](https://avatars.githubusercontent.com/u/10126040?v=4)](https://github.com/mohamedsabil83 "mohamedsabil83 (1 commits)")[![mundiakaluson](https://avatars.githubusercontent.com/u/50300486?v=4)](https://github.com/mundiakaluson "mundiakaluson (1 commits)")

---

Tags

alpinejslaravellivewiresweetalert2jantinnerezolivewire-alert

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[livewire/flux

The official UI component library for Livewire.

9527.8M128](/packages/livewire-flux)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

725174.0k14](/packages/tallstackui-tallstackui)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[venturedrake/laravel-crm

A free open source CRM built as a package for laravel projects

43411.2k](/packages/venturedrake-laravel-crm)[tomshaw/electricgrid

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

119.4k](/packages/tomshaw-electricgrid)[noerd/noerd

101.4k7](/packages/noerd-noerd)

PHPackages © 2026

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