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

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

hubuki/laravel-sweetalert
=========================

Laravel Alerts with SweetAlerts

v1.0.3(8y ago)0490MITPHP

Since Feb 26Pushed 8y ago1 watchersCompare

[ Source](https://github.com/hubuki/laravel-sweetalert)[ Packagist](https://packagist.org/packages/hubuki/laravel-sweetalert)[ RSS](/packages/hubuki-laravel-sweetalert/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

> fork from socieboy/alerts

Laravel 5 Alerts
----------------

[](#laravel-5-alerts)

### Installation

[](#installation)

Add to your composer.json file the package.

```
"hubuki/laravel-sweetalert" : "dev-master"

```

Update your dependencies

```
composer update

```

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

```
Hubuki\LaravelSweetAlert\LaravelSweetAlertServiceProvider::class

```

Add the JS script before close your &lt;/body&gt; tag.

```

```

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

```
@include('LaravelSweetAlert::show')

```

### Usage

[](#usage)

On your controllers is a perfect place to use it, any way you can fire the alerts from jobs or events.

```
alert('Title', 'Message')

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

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

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

```

Override the type of overlay

```
alert()->overlay('Title', 'Message', 'error')
// success (default)
// error
// info

```

#### SweetAlerts website

[](#sweetalerts-website)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 54.3% 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

2997d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a8b5f4112a6ba61f555a2a7a8bda666dc947e883be571247b5d5ac17e96bd709?d=identicon)[grace150506](/maintainers/grace150506)

---

Top Contributors

[![socieboy](https://avatars.githubusercontent.com/u/7442695?v=4)](https://github.com/socieboy "socieboy (19 commits)")[![hubuki](https://avatars.githubusercontent.com/u/1298767?v=4)](https://github.com/hubuki "hubuki (16 commits)")

### Embed Badge

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

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

PHPackages © 2026

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