PHPackages                             infinety/alerts - 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. infinety/alerts

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

infinety/alerts
===============

A Sweet Alert package for Laravel 5&gt;

2315.4k111JavaScript

Since Oct 17Pushed 8y ago4 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (1)

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

[](#laravel-51-sweetalert)

Laravel package to use the javascript SweetAlert with Laravel Service Provider. Simple package, but effective.

Installation
------------

[](#installation)

```
composer require infinety/alerts *@dev

```

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

```
Infinety\Alerts\AlertServiceProvider::class

```

Copy the required assets of SweetAlert to your public folder. Those assets would be place in the css and js respective directory.

```
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::alerts')

```

### 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')

```

### Issues

[](#issues)

If you have any questions or issues, please open an Issue and I will look at this and look to fix as soon as possible.

### SweetAlert website

[](#sweetalert-website)

### Thanks

[](#thanks)

Special thanks to  for this package but changed a few things and wanted to learn myself how to make this sort of package also, so Kudos to Socieboy :)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/2775675a2575f636baf76ce3ad2d538ef951b51487744ec434c163edc57d31c4?d=identicon)[lstables](/maintainers/lstables)

---

Top Contributors

[![lstables](https://avatars.githubusercontent.com/u/1168291?v=4)](https://github.com/lstables "lstables (7 commits)")[![abrahamgreyson](https://avatars.githubusercontent.com/u/1341308?v=4)](https://github.com/abrahamgreyson "abrahamgreyson (1 commits)")[![curranjensen](https://avatars.githubusercontent.com/u/9090089?v=4)](https://github.com/curranjensen "curranjensen (1 commits)")[![tobischulz](https://avatars.githubusercontent.com/u/576014?v=4)](https://github.com/tobischulz "tobischulz (1 commits)")

---

Tags

laravelsweetalert

### Embed Badge

![Health badge](/badges/infinety-alerts/health.svg)

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

###  Alternatives

[codenco-dev/nova-grid-system

A Laravel Nova tool to have a grid system

80300.1k](/packages/codenco-dev-nova-grid-system)[mageplaza/module-share-cart

Magento 2 Share Cart extension

12182.8k2](/packages/mageplaza-module-share-cart)

PHPackages © 2026

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