PHPackages                             wavey/sweetalert - 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. wavey/sweetalert

ActiveLibrary

wavey/sweetalert
================

SweetAlert2 implementation for Laravel

v1.2.5(3y ago)497.5k—7.1%3[1 PRs](https://github.com/waveygroup/sweetalert/pulls)MITPHPPHP ^7.3|^8.0

Since Jan 16Pushed 2y ago3 watchersCompare

[ Source](https://github.com/waveygroup/sweetalert)[ Packagist](https://packagist.org/packages/wavey/sweetalert)[ GitHub Sponsors](https://github.com/waveygroup)[ RSS](/packages/wavey-sweetalert/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (2)Versions (10)Used By (0)

 [ ![Sweetalerts](https://camo.githubusercontent.com/46b7be01effc8322a57cef20517be82c11e8170f8c53c38eb709df275d7e3b34/68747470733a2f2f692e696d6775722e636f6d2f55566e786b436c2e706e67) ](https://wavey.group/packages/sweetalert)
 [ ![](https://camo.githubusercontent.com/4c8d9580b2e92105821536a868a514e6bd7dcdde975b73792d3ab717690afc93/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f77617665792f7377656574616c657274) ](https://img.shields.io/packagist/v/wavey/sweetalert) [ ![](https://camo.githubusercontent.com/f17f2a2913e3b0ecfa11df72e981217a50656b418d6b018d6f20478656bfeb1b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636865636b732d7374617475732f776176657967726f75702f7377656574616c6572742f6d6173746572) ](https://img.shields.io/github/checks-status/waveygroup/sweetalert/master)[ ![](https://camo.githubusercontent.com/992b829b9a35bbc1c1fdc1893a4b8192a9138ed637e12015c0f7628aa620e3de/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f77617665792f7377656574616c657274) ](https://img.shields.io/packagist/stars/wavey/sweetalert) [ ![](https://camo.githubusercontent.com/518de6181b9d7745942e5bb511f2d30e16ec909c381445c2e5e611c757a0e92c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f776176657967726f75702f7377656574616c657274) ](https://img.shields.io/github/issues/waveygroup/sweetalert) [ ![](https://camo.githubusercontent.com/652753d7d1e0bde5ff76696cf25513af4df3f900ce40748ab7ac21f33e2e4ebd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f77617665792f7377656574616c6572742f706870) ](https://img.shields.io/packagist/dependency-v/wavey/sweetalert/php) [ ![](https://camo.githubusercontent.com/3066fc27efd34595ec25947b65ba305b4d03fde86152b02366bc277c3c93bde9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f776176657967726f75702f7377656574616c657274) ](https://img.shields.io/github/license/waveygroup/sweetalert)

 **Sweetalerts** is an Laravel implementation of the much loved [Sweetalerts 2](https://sweetalert2.github.io/) package. Show your users some beautiful alerts when actions are performed in your Laravel application with some handy helpers.

⚡️ Quickstart
-------------

[](#️-quickstart)

Install Sweetalert through composer and run our installer.

```
composer require wavey/sweetalert && php artisan sweetalert:install
```

Include the Sweetalert2 javascript and then include our sweetalert 2 components.

```

@include('sweetalert::sweetalert')
```

📖 Usage
-------

[](#-usage)

Before using Sweetalerts, you will need to include the sweetalert facade at the top of your controllers:

```
use Wavey\Sweetalert\Sweetalert;
```

Now you should have access to the `Sweetalert` facade inside your controllers. Their is many varients of the alerts you can use:

```
Sweetalert::basic('Description', 'Title');
Sweetalert::info('Description', 'Title');
Sweetalert::success('Description', 'Title');
Sweetalert::error('Description', 'Title');
Sweetalert::warning('Description', 'Title');
Sweetalert::message('Description', 'Title');
Sweetalert::message('Description Custom HTML', 'Title')->html();
```

⚠️ Limitations
--------------

[](#️-limitations)

- Currently this package doesn't work as expected from inside Livewire components, we are working on a fix for this and will be inside a later release. |

👍 Contribute
------------

[](#-contribute)

If you want to say **thank you** and/or support the active development of `Sweetalerts`:

1. Add a [GitHub Star](https://github.com/waveygroup/sweetalert/stargazers) to the project.
2. Tweet about the project on your twitter.
3. Write a review or tutorial on [Medium](https://medium.com/), [Dev.to](https://dev.to/) or personal blog.
4. Support the project by pleding through [GitHub](https://github.com/sponsors/waveygroup).

🛡️ Security Vulnerabilities
---------------------------

[](#️-security-vulnerabilities)

Please review our [security policy](https://github.com/waveygroup/sweetalert/security/policy) on how to report security vulnerabilities.

⚠️ License
----------

[](#️-license)

Copyright (c) 2022-present [Wavey Group](https://github.com/waveygroup) and [Contributors](https://github.com/waveygroup/sweetalert/graphs/contributors). `Sweetalert` is free and open-source software licensed under the [MIT License](https://github.com/waveygroup/sweetalert/blob/master/LICENSE.md).

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

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

Total

6

Last Release

1276d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0b769193c7315316fbbff8737246375b30aca1ec9aa958cec6090b0c5beffe94?d=identicon)[debugdotdog](/maintainers/debugdotdog)

---

Top Contributors

[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (2 commits)")

---

Tags

alertalertdialogalertingcomposercomposer-packagelaravellaravel-frameworklaravel-packagelaravel8librarypackagephpsweetalertsweetalert2laravelalertsalertsweetsweetalert

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/wavey-sweetalert/health.svg)

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

###  Alternatives

[uxweb/sweet-alert

A simple PHP package to show Sweet Alerts with the Laravel Framework

8251.3M6](/packages/uxweb-sweet-alert)[loveorigami/yii2-notification-wrapper

This module for renders a message from session flash (with ajax, pjax support and etc.)

77199.7k5](/packages/loveorigami-yii2-notification-wrapper)

PHPackages © 2026

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