PackageTrack
Sign in Get early access

jantinnerezo/livewire-alert

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

v4.2.0 1.4M downloads/mo #3419 most downloaded on Packagist jantinnerezo/livewire-alert

What this package is like to depend on

Last release 3 months ago

18 May 2026

Release timing varies

gaps range from 9 days to 12 months

Rarely documented

notes for 9 of 39 stable releases

Nothing withdrawn

no release was ever pulled

6 years old

39 releases · first in 2020

5 releases in the last 12 months

see the full history below

Release timeline

39 releases · Jun 2020 to May 2026
2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 39
  1. v4.2.0 18 May 2026
    Release notes

    v4.2.0 — Drive loading spinners and live alert updates straight from PHP

    Three new methods give your Livewire components server-driven control over an open alert — no more close-and-reopen flicker.

    ✨ New

    • asLoading(?string $title = null) — preset for non-dismissable spinne and backdrop clicks; triggers Swal.showLoading() on open. Default title'Loading...', override with a string argument.
    LivewireAlert::title('Saving...')->asLoading()->show();
    • close() — dismiss the current alert from the server.
    LivewireAlert::close();
    • update(?array $options = null) — mutate the open alert in place via Swal.update(). Two forms:

    Fluent — only explicitly-set options emitted, config defaults not merged:

    LivewireAlert::title('Almost done')->text('90%')->update();

    Explicit payload:

    LivewireAlert::update([
        'title' => 'Almost done',
        'text'  => '90%',
    ]);

    No-op (with console warning) when no alert is visible. Guards run before calal` no longer throws.

    🧩 Why this matters

    Pair asLoading() + wire:poll + update() to drive Bus::batch() progreany phased task — all from PHP, with the alert updating live.

    🛡 Contract

    Alertable interface extended with the three new methods (additive — no break).

    Full Changelog: v4.2.0...v4.2.0

    Open source →
  2. v4.1.0 04 Apr 2026
    Release notes

    Bug Fixes

    • Fixed Livewire 4 compatibility - Resolved MethodNotFoundException: Public method [toJSON] not found on component when using the package with Livewire 4. The
      root cause was $wire.call() not being handled correctly by Livewire 4's $wire proxy. It now uses $wire[action]() which works on both Livewire 3 and 4.
      (#181)

    New Methods

    • timerProgressBar() - Show a visual countdown progress bar
    • asToast() - Ready-to-use toast preset (top-end, timer from config, progress bar enabled)
    • customClass(array $classes) - Apply custom CSS classes to any part of the alert
    • reverseButtons() - Swap confirm and cancel button positions

    Input Methods

    Dedicated methods for collecting user input directly within an alert:

    • withTextInput(), withEmailInput(), withPasswordInput(), withNumberInput(), withTextareaInput()
    • withSelectInput(), withRadioInput(), withCheckboxInput(), withFileInput()
    Open source →
  3. v4.0.9 24 Mar 2026

    Nothing published for this version

  4. v4.0.8 28 Jan 2026
    Release notes

    Added Livewire 4 support

    Open source →
  5. v4.0.7 30 Sep 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v4.0.6...v4.0.7

    Open source →
  6. v4.0.6 13 Jul 2025
    Release notes

    What's added?

    • Added allowOutsideClick method with boolean type parameter "allowed" default is true
    • Added allowEscapeKey method with boolean type parameter "allowed" default is true
    • Allow null parameter type on timer method

    Usage

    For example, if you don't want to close alert on outside click, escape key and disable auto close.

    LivewireAlert::question()
      ->title("Are you sure do you want to approve proposal?")
      ->allowOutsideClick(false) // new method
      ->allowEscapeKey(false) // new method
      ->timer(null) // You can pass null now instead of only integer and that disables auto closing

    Full Changelog: 4.0.5...v4.0.6

    Open source →
  7. 4.0.5 21 Apr 2025
    Release notes
    • Added html function
    LivewireAlert::title('New html function!')
     ->html("<p><strong>You should try it out!</strong></p>")
     ->show();

    Full Changelog: v4.0.4...4.0.5

    Open source →
  8. v4.0.4 20 Mar 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v4.0.3...v4.0.4

    Open source →
  9. v4.0.3 07 Mar 2025
    Release notes

    What's Changed

    Full Changelog: v4.0.2...v4.0.3

    Open source →
  10. v4.0.2 04 Mar 2025
    Release notes
    • Fixed eval option typo

    Full Changelog: v4.0.1...v4.0.2

    Open source →
  11. v4.0.1 04 Mar 2025

    Nothing published for this version

  12. v4.0.0 04 Mar 2025

    Nothing published for this version

  13. v3.0.3 26 Feb 2025

    Nothing published for this version

  14. v3.0.2 10 Mar 2024

    Nothing published for this version

  15. v3.0.1 14 Oct 2023

    Nothing published for this version

  16. 2.2.7 15 Feb 2023

    Nothing published for this version

  17. 2.2.6 15 Mar 2022

    Nothing published for this version

  18. 2.2.5 08 Mar 2022

    Nothing published for this version

  19. 2.2.4 02 Feb 2022

    Nothing published for this version

  20. 2.2.3 21 Nov 2021

    Nothing published for this version

  21. 2.2.2 20 Nov 2021

    Nothing published for this version

  22. 2.2.1 09 Nov 2021

    Nothing published for this version

  23. 2.2.0 09 Nov 2021

    Nothing published for this version

  24. 2.1.9 08 Nov 2021

    Nothing published for this version

  25. 2.1.8 27 Oct 2021

    Nothing published for this version

  26. 2.1.7 27 Jul 2021

    Nothing published for this version

  27. 2.1.6 06 May 2021

    Nothing published for this version

  28. 2.1.5 09 Mar 2021

    Nothing published for this version

  29. 2.1.4 05 Jan 2021

    Nothing published for this version

  30. 2.1.3 04 Jan 2021

    Nothing published for this version

  31. 2.1.2 27 Dec 2020

    Nothing published for this version

  32. 2.1.1 27 Dec 2020

    Nothing published for this version

  33. 2.0.2 14 Nov 2020

    Nothing published for this version

  34. 2.0.1 11 Nov 2020

    Nothing published for this version

  35. 1.2.0 09 Sep 2020

    Nothing published for this version

  36. v3.0 21 Jul 2023

    Nothing published for this version

  37. v1.0 14 Jun 2020

    Nothing published for this version

  38. 2.1 26 Dec 2020

    Nothing published for this version

  39. 2.0 02 Nov 2020

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive