PHPackages                             moathdev/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. moathdev/sweetalert

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

moathdev/sweetalert
===================

A Sweet Alert package for Laravel 5.2

1.0.3(9y ago)102521MITCSSPHP &gt;=5.5.0

Since Sep 15Pushed 6y agoCompare

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

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

Laravel 5.2 SweetAlert
----------------------

[](#laravel-52-sweetalert)

all appreciation to laracasts.com i just can't sleep ! so i created package :)

\##Installation

```
composer require moathdev/sweetalert

```

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

```
Moathdev\Sweetalert\SweetalertServiceProvider::class,

```

Then you just need to publish files ! Copy and paste it

```
php artisan vendor:publish --provider="Moathdev\Sweetalert\SweetalertServiceProvider"

```

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

```

```

Add the JS script and include flash view before close your tag.

```

        @include('Flash')

```

\###Usage

it's so Easy !

```

 flash('title','message','success',true);

 // there is 4 Types 1-warning 2-error 3-success 4-info

 // showConfirmButton yes = true no = false

```

\###Issues

If you have any questions or issues, please open an Issue .

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

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

Total

4

Last Release

3466d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ca4a00ee175282b3437ca8b3c1b4ff4819868930ff61927cbbe75385c335c34?d=identicon)[moathdev](/maintainers/moathdev)

---

Top Contributors

[![moathdev-zz](https://avatars.githubusercontent.com/u/21123747?v=4)](https://github.com/moathdev-zz "moathdev-zz (4 commits)")

### Embed Badge

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

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M683](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M157](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M210](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M858](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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