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

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

codingwithrk/rk-sweet-alert
===========================

A Laravel package to implement SweetAlert.

1.0.0(1y ago)18MITPHPPHP ^7.4|^8.0

Since Sep 4Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/codingwithrk/rk-sweet-alert)[ Packagist](https://packagist.org/packages/codingwithrk/rk-sweet-alert)[ RSS](/packages/codingwithrk-rk-sweet-alert/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

[![Image](https://camo.githubusercontent.com/a587fc2559cd182aec66a59187a90a16119281fb5c191c1c7125918a5117dc20/68747470733a2f2f636f64696e6777697468726b2e636f6d2f7061636b6167652d62616e6e65722f726b2d73776565742d616c6572742e706e67)](https://camo.githubusercontent.com/a587fc2559cd182aec66a59187a90a16119281fb5c191c1c7125918a5117dc20/68747470733a2f2f636f64696e6777697468726b2e636f6d2f7061636b6167652d62616e6e65722f726b2d73776565742d616c6572742e706e67)

 [![Packagist License](https://camo.githubusercontent.com/76b3ecd9be77d443897b280f059e43518faf489a42439e852fe9ca48063896f3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f636f64696e6777697468726b2f726b2d73776565742d616c657274)](https://camo.githubusercontent.com/76b3ecd9be77d443897b280f059e43518faf489a42439e852fe9ca48063896f3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f636f64696e6777697468726b2f726b2d73776565742d616c657274) [![Packagist Version](https://camo.githubusercontent.com/bf3d78bb1ca7dfd1570c73d0ebb4ddd36b035b0f9c4615fc3f26a316a3d9cd6e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f64696e6777697468726b2f726b2d73776565742d616c657274)](https://camo.githubusercontent.com/bf3d78bb1ca7dfd1570c73d0ebb4ddd36b035b0f9c4615fc3f26a316a3d9cd6e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f64696e6777697468726b2f726b2d73776565742d616c657274) [![Packagist Dependency Version](https://camo.githubusercontent.com/e1c315798e7fa0fe45b0b6a07e32ec86d82aff9555f3c09a30273e3e1c1e3afb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f636f64696e6777697468726b2f726b2d73776565742d616c6572742f706870)](https://camo.githubusercontent.com/e1c315798e7fa0fe45b0b6a07e32ec86d82aff9555f3c09a30273e3e1c1e3afb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f636f64696e6777697468726b2f726b2d73776565742d616c6572742f706870) [![Packagist Dependency Version](https://camo.githubusercontent.com/ca5e2f7fb56a69c9d453443ac4eb9d1c20bbbff91591d8b6c7fa7a70e88c3813/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f636f64696e6777697468726b2f726b2d73776565742d616c6572742f6c61726176656c2532466672616d65776f726b)](https://camo.githubusercontent.com/ca5e2f7fb56a69c9d453443ac4eb9d1c20bbbff91591d8b6c7fa7a70e88c3813/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f636f64696e6777697468726b2f726b2d73776565742d616c6572742f6c61726176656c2532466672616d65776f726b)

Introduction
------------

[](#introduction)

Hello fellow developers, using this package you can display sweet alerts.

### How to Install

[](#how-to-install)

```
composer require codingwithrk/rk-sweet-alert
```

### Add this before body closing tag

[](#add-this-before-body-closing-tag)

```

```

### After that in your controller

[](#after-that-in-your-controller)

```
session()->flash('rk-alert', [
    'title' => 'Are you sure?',
    'text' => 'You won\'t be able to revert this!',
    'icon' => 'warning',
    'confirmButtonText' => 'Yes, delete it!',
    'showCancelButton' => true,
    'confirmButtonColor' => '#3085d6',
    'cancelButtonColor' => '#d33',
]);
```

#### publish vendor config file

[](#publish-vendor-config-file)

```
php artisan vendor:publish --provider="Codingwithrk\RkSweetAlert\RkSweetAlertServiceProvider" --tag="config"
```

License
-------

[](#license)

This is open-sourced software licensed under the [MIT license](/LICENSE).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance48

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

611d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9bb4ef593bedabe28ed3c56ee0af1e397428363e05236552b7de1fcdd4da5d93?d=identicon)[CodingwithRK](/maintainers/CodingwithRK)

---

Top Contributors

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

---

Tags

laravellaravel-packagesweetalert2

### Embed Badge

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

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

###  Alternatives

[tightenco/ziggy

Use your Laravel named routes in JavaScript.

4.3k41.6M267](/packages/tightenco-ziggy)[wireui/wireui

TallStack components

1.8k1.3M16](/packages/wireui-wireui)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)[nickurt/laravel-akismet

Akismet for Laravel 11.x/12.x/13.x

97139.6k2](/packages/nickurt-laravel-akismet)[sbine/route-viewer

A Laravel Nova tool to view your registered routes.

57215.9k](/packages/sbine-route-viewer)

PHPackages © 2026

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