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

ActiveLibrary

raymondwilkinson/sweetalert-laravel
===================================

Simple way to flash sweetalert messages to the screen for laravel.

v1.0.3(9y ago)01.6k11MITCSS

Since May 2Pushed 9y ago1 watchersCompare

[ Source](https://github.com/RaymondWilkinson/Sweetalert-Laravel)[ Packagist](https://packagist.org/packages/raymondwilkinson/sweetalert-laravel)[ RSS](/packages/raymondwilkinson-sweetalert-laravel/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (5)Used By (1)

Sweetalert-Laravel
==================

[](#sweetalert-laravel)

Simple way to flash sweetalert messages to the screen for laravel.

Laravel 5.1 SweetAlert
----------------------

[](#laravel-51-sweetalert)

Simple way to flash sweetalert messages to the screen for laravel.

\##Installation

```
composer require raymondwilkinson/sweetalert-laravel

```

After install this package you have to set the service provider on your config/app.php file

```
RaymondWilkinson\SweetalertLaravel\AlertServiceProvider::class,

```

Copy the required assets of SweetAlert to your public folder. Those assets would be placed in the css and js directories respectively.

```
php artisan vendor:publish --tag=alerts

```

Then in your master view add those styles and scripts. Put this style between the tags

```

```

Add the JS script before close your tag.

```

```

Include the alerts view to your master view. Add this code right after set the JS script file.

```
@include('Alerts::sweetalerts')

```

\###Usage

Your controllers are a perfect place to use it.

```
flash('Title', 'Message')

flash()->error('Title', 'Message')

flash()->success('Title', 'Message')

flash()->overlay('Title', 'Message')

```

\###SweetAlert website

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity66

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

Total

4

Last Release

3613d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/76398c7e5df0e283683005c31f37478723c0bfedcb4b0be7726f54f96921e1e3?d=identicon)[RaymondWilkinson](/maintainers/RaymondWilkinson)

---

Top Contributors

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

---

Tags

laravelalertsflash-messagessweetalert

### Embed Badge

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

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

###  Alternatives

[prologue/alerts

Prologue Alerts is a package that handles global site messages.

3486.1M30](/packages/prologue-alerts)[wavey/sweetalert

SweetAlert2 implementation for Laravel

497.5k](/packages/wavey-sweetalert)

PHPackages © 2026

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