PHPackages                             socieboy/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. [Templating &amp; Views](/categories/templating)
4. /
5. socieboy/alerts

AbandonedArchivedPackage[Templating &amp; Views](/categories/templating)

socieboy/alerts
===============

Laravel Alerts with SweetAlerts

187.4k8[2 issues](https://github.com/socieboy/alerts/issues)JavaScript

Since Nov 16Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel 5.1 Alerts
------------------

[](#laravel-51-alerts)

### Installation

[](#installation)

Add to your composer.json file the package.

```
"socieboy/alerts" : "dev-master"

```

Update your dependencies

```
composer update

```

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

```
Socieboy\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 &lt;head&gt; &lt;/head&gt; tags

```

```

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('Alerts::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

28

—

LowBetter than 52% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7442695?v=4)[Frank Sepulveda](/maintainers/socieboy)[@socieboy](https://github.com/socieboy)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3851.2M](/packages/limenius-react-bundle)[area17/laravel-auto-head-tags

Laravel Auto Head Tags helps you build the list of head elements for your app

4616.1k](/packages/area17-laravel-auto-head-tags)[jelix/wikirenderer

WikiRenderer is a library to generate HTML or anything else from wiki content.

1712.3k1](/packages/jelix-wikirenderer)[webkinder/sproutset

A Composer package for handling responsive images in Roots Bedrock + Sage + Blade projects.

282.2k](/packages/webkinder-sproutset)

PHPackages © 2026

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