PHPackages                             realrashid/sweet-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. realrashid/sweet-alert

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

realrashid/sweet-alert
======================

Laravel Sweet Alert Is A Package For Laravel Provides An Easy Way To Display Alert Messages Using The SweetAlert2 Library.

v7.3.0(1y ago)1.2k2.9M↓14.5%169[6 issues](https://github.com/realrashid/sweet-alert/issues)20MITPHPPHP ^7.2|^8.0|^8.1|^8.2|^8.3CI failing

Since Nov 26Pushed 1mo ago29 watchersCompare

[ Source](https://github.com/realrashid/sweet-alert)[ Packagist](https://packagist.org/packages/realrashid/sweet-alert)[ Docs](https://github.com/realrashid/sweet-alert)[ Fund](https://ko-fi.com/realrashid)[ Fund](https://www.buymeacoffee.com/realrashid)[ RSS](/packages/realrashid-sweet-alert/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (35)Used By (20)

 [ ![SweetAlert2](docs/imgs/logo/logo.png) ](https://realrashid.github.io/sweet-alert/)

A BEAUTIFUL, RESPONSIVE, CUSTOMIZABLE, ACCESSIBLE (WAI-ARIA) REPLACEMENT FOR JAVASCRIPT'S POPUP BOXES FOR LARAVEL

 [![](https://camo.githubusercontent.com/4fbce3df17d5b3f11c6087f9554390bb4a174689bea9302c46dc6e3b9f3efc52/68747470733a2f2f7261772e6769746875622e636f6d2f7377656574616c657274322f7377656574616c657274322f6d61737465722f6173736574732f7377656574616c657274322e676966)](https://camo.githubusercontent.com/4fbce3df17d5b3f11c6087f9554390bb4a174689bea9302c46dc6e3b9f3efc52/68747470733a2f2f7261772e6769746875622e636f6d2f7377656574616c657274322f7377656574616c657274322f6d61737465722f6173736574732f7377656574616c657274322e676966)

[![Total Downloads](https://camo.githubusercontent.com/c3974f9965d7e33fa98438d60097aa46dd79ca6161d35c6d49d492417e160252/68747470733a2f2f706f7365722e707567782e6f72672f7265616c7261736869642f73776565742d616c6572742f642f746f74616c2e737667)](https://packagist.org/packages/realrashid/sweet-alert)[![Latest Stable Version](https://camo.githubusercontent.com/dc7fcc6f75157a293f174c6dde961177a103d4893fc3d0adba0a953a6566b2e5/68747470733a2f2f706f7365722e707567782e6f72672f7265616c7261736869642f73776565742d616c6572742f762f737461626c652e737667)](https://packagist.org/packages/realrashid/sweet-alert)[![Support me on Patreon](https://camo.githubusercontent.com/358702195289c93969f0c294caf64cce19203352d4fcdc4e5958d381bc357c21/687474703a2f2f696f6e69636162697a61752e6769746875622e696f2f6261646765732f70617472656f6e2e737667)](https://www.patreon.com/realrashid)[![License](https://camo.githubusercontent.com/d73e0e4be2b72d4787ded49556331c50d432eb18298e37fb84fdf094be4beccc/68747470733a2f2f706f7365722e707567782e6f72672f7265616c7261736869642f73776565742d616c6572742f6c6963656e73652e737667)](https://packagist.org/packages/realrashid/sweet-alert)

Install
=======

[](#install)

To get started with SweetAlert2, use Composer to add the package to your project's dependencies:

```
composer require realrashid/sweet-alert

```

###  [Documentation](https://realrashid.github.io/sweet-alert)

[](#----documentation)

Sponsors
--------

[](#sponsors)

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. \[[Become a sponsor](https://opencollective.com/sweet-alert#sponsor)\]

[![](https://camo.githubusercontent.com/640190cba7cc10ce49aa02eab413f07d2d7962b501776bb557a2c394a7283f25/68747470733a2f2f7777772e6769742d7a656e2e636f6d2f696d616765732f6c6f676f2d736d616c6c2d7472616e732e706e67)](https://www.git-zen.com/?utm_source=https://github.com/realrashid/sweet-alert&utm_medium=github&utm_campaign=sweet-alert)

❤️ Open-Source Software - Give ⭐️
---------------------------------

[](#️-open-source-software---give-️)

I have included the awesome `symfony/thanks` composer package as a dev dependency. Let your OS package maintainers know you appreciate them by starring the packages you use. Simply run `composer thanks` after installing this package. (And not to worry, since it's a dev-dependency it won't be installed in your live environment.)

License
-------

[](#license)

SweetAlert2 is open-sourced software licensed under the MIT License (MIT). Please see [License File](LICENSE.md) for more information.

 **Made with ❤️ from Pakistan**

****> note: if you are using sweet-alert v1.0 you can get README for v1.0 from [here](https://github.com/realrashid/sweet-alert/blob/1.0/readme.md)****

###  Health Score

71

—

ExcellentBetter than 100% of packages

Maintenance69

Regular maintenance activity

Popularity67

Solid adoption and visibility

Community42

Growing community involvement

Maturity90

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 78.9% 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 ~82 days

Recently: every ~169 days

Total

33

Last Release

447d ago

Major Versions

v2.0.3 → v3.02019-11-21

v3.2.3 → v4.0.02021-06-14

v4.1.0 → v5.0.02022-02-04

v5.1.0 → v6.0.02023-02-15

v6.0.0 → v7.0.02023-04-20

PHP version history (7 changes)1.0.x-devPHP &gt;=5.4.0

v1.1PHP ~5.6|~7.0

v2.0PHP ~5.6|~7.0|~7.1.3

v2.0.1PHP ^7.2

v3.2.0PHP ^7.2|^8.0

v7.0.0PHP ^7.2|^8.0|^8.1

v7.2.0PHP ^7.2|^8.0|^8.1|^8.2|^8.3

### Community

Maintainers

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

---

Top Contributors

[![realrashid](https://avatars.githubusercontent.com/u/15607685?v=4)](https://github.com/realrashid "realrashid (131 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (5 commits)")[![FarhanShares](https://avatars.githubusercontent.com/u/3446817?v=4)](https://github.com/FarhanShares "FarhanShares (4 commits)")[![rashidali99](https://avatars.githubusercontent.com/u/150647776?v=4)](https://github.com/rashidali99 "rashidali99 (3 commits)")[![mohamedds-12](https://avatars.githubusercontent.com/u/92916932?v=4)](https://github.com/mohamedds-12 "mohamedds-12 (3 commits)")[![dyaskur](https://avatars.githubusercontent.com/u/9539970?v=4)](https://github.com/dyaskur "dyaskur (2 commits)")[![ericlbarnes](https://avatars.githubusercontent.com/u/116662?v=4)](https://github.com/ericlbarnes "ericlbarnes (2 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (2 commits)")[![lakuapik](https://avatars.githubusercontent.com/u/20186786?v=4)](https://github.com/lakuapik "lakuapik (1 commits)")[![maki10](https://avatars.githubusercontent.com/u/13304146?v=4)](https://github.com/maki10 "maki10 (1 commits)")[![Manzadey](https://avatars.githubusercontent.com/u/34869211?v=4)](https://github.com/Manzadey "Manzadey (1 commits)")[![mushlih-almubarak](https://avatars.githubusercontent.com/u/72560310?v=4)](https://github.com/mushlih-almubarak "mushlih-almubarak (1 commits)")[![owenvoke](https://avatars.githubusercontent.com/u/1899334?v=4)](https://github.com/owenvoke "owenvoke (1 commits)")[![stefro](https://avatars.githubusercontent.com/u/5249559?v=4)](https://github.com/stefro "stefro (1 commits)")[![thewebartisan7](https://avatars.githubusercontent.com/u/57477934?v=4)](https://github.com/thewebartisan7 "thewebartisan7 (1 commits)")[![Dashing-Nelson](https://avatars.githubusercontent.com/u/45660392?v=4)](https://github.com/Dashing-Nelson "Dashing-Nelson (1 commits)")[![Faber44](https://avatars.githubusercontent.com/u/9255342?v=4)](https://github.com/Faber44 "Faber44 (1 commits)")[![hakimzulkufli](https://avatars.githubusercontent.com/u/42469039?v=4)](https://github.com/hakimzulkufli "hakimzulkufli (1 commits)")[![hatamiarash7](https://avatars.githubusercontent.com/u/16325641?v=4)](https://github.com/hatamiarash7 "hatamiarash7 (1 commits)")[![hoRacy](https://avatars.githubusercontent.com/u/3371009?v=4)](https://github.com/hoRacy "hoRacy (1 commits)")

---

Tags

confirmation-dialogdialoglaravellaravel-packagepopuppromptsweetalertsweetalert2toastlaravelnotifierlaravel-packagealerttoastsweet-alertnotysweet-alert2

### Embed Badge

![Health badge](/badges/realrashid-sweet-alert/health.svg)

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

###  Alternatives

[masmerise/livewire-toaster

Beautiful toast notifications for Laravel / Livewire.

505550.3k6](/packages/masmerise-livewire-toaster)[imanghafoori/laravel-nullable

A package to help you write expressive defensive code in a functional manner

151423.7k6](/packages/imanghafoori-laravel-nullable)[fresns/plugin-manager

Enhance Laravel Apps: Organized &amp; Scalable

523.2k2](/packages/fresns-plugin-manager)

PHPackages © 2026

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