# realrashid/sweet-alert

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

Repository: https://github.com/realrashid/sweet-alert
Canonical: https://ross.abutalabs.com/products/sweet-alert
Homepage: https://realrashid.github.io/sweet-alert
Language: PHP
License: MIT
License Family: permissive
Topics: laravel, laravel-package, sweetalert, toast, popup, prompt, dialog, sweetalert2, confirmation-dialog
Last push: 2026-03-29T14:34:29+00:00

## Health v2 (maintenance only)
Score: 80/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 74, release rhythm 77, longevity 100
- inputs: {"age_days": 3289, "days_push": 157, "days_rel": 157, "gap_med": 4.5, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1162, forks 166 (observed 2026-08-28T04:03:49.515821+00:00)

## What it is
A Laravel package that integrates SweetAlert2, providing beautiful, responsive, customizable, and accessible (WAI-ARIA) popup boxes, alerts, toasts, and confirmation dialogs. It wraps the SweetAlert2 JavaScript library for easy use in Laravel applications.

## Use cases
- show toast notifications in a Laravel app
- display confirmation dialogs before deleting records
- replace JavaScript alert boxes with styled popups
- show success or error alerts after form submissions
- prompt users for input with a modal dialog
- add accessible WAI-ARIA popup dialogs to Laravel views

## When to choose
- you are building a Laravel application and want SweetAlert2 popups with minimal setup
- you need server-side flash messages rendered as attractive alerts or toasts
- you want accessible, customizable dialog and confirmation components out of the box

## When to avoid
- you are not using Laravel or PHP
- you need popup dialogs in a non-server-rendered frontend framework without Laravel integration
- you only need plain JavaScript alert functionality without styling

## Facets
- artifact type: library
- maturity: active
- function: ui-components, middleware
- domain: web-development, frontend
- platform: php
- tags: laravel-package, sweetalert2, toast-notifications, popup-dialogs, confirmation-dialog, php, web-server

## Member repositories
- realrashid/sweet-alert (main) score 80

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:49.515821+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:31:39.322009+00:00, confidence not recorded.
  - readme: https://github.com/realrashid/sweet-alert (fetched 2026-08-28T04:03:49.515821+00:00, sha 14587447523a)
  - homepage: https://realrashid.github.io/sweet-alert (fetched 2026-08-29T12:35:58.169155+00:00, sha dc41bd17855f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
