PHPackages                             dberry37388/laravel5-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. [Framework](/categories/framework)
4. /
5. dberry37388/laravel5-alerts

AbandonedArchivedLibrary[Framework](/categories/framework)

dberry37388/laravel5-alerts
===========================

Package for managing alerts (messages) in your Laravel 5 application.

v0.0.1(11y ago)1191MITPHP

Since Apr 17Pushed 11y ago1 watchersCompare

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

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

Alerts for Laravel 5
====================

[](#alerts-for-laravel-5)

Package for managing alerts (messages) in your Laravel 5 application

### Installation

[](#installation)

First things first, let's pull the package in from composer

```
composer require dberry37388/laravel5-alerts

```

### Integrating with Laravel

[](#integrating-with-laravel)

Open up `app.php` and add the following to the providers array

```
"Dberry37388\Alerts\AlertsServiceProvider",

```

Next, let's add the facade. This will let you do things like `Alerts::getErrors()`. We'll add this to the `aliases` array.

```
'Alerts'    => 'Dberry37388\Alerts\Facades\Alerts'

```

### Published the Config

[](#published-the-config)

You can publish the default config to your `app/config` directory by running the following command:

```
php artisan vendor:publish --provider="Dberry37388\Alerts\AlertsServiceProvider" --tag=config

```

### Usage

[](#usage)

Adding a new alert. In this example, we are adding an "info" alert. You can substitute "info" with any type that you need.

```
Alerts::error('my message');
Alerts::alert('info', 'Your Message Here');

```

Adding an alert to a container other than the default:

```
Alerts::error('My message', 'pnotify');
Alerts::alert('errors', 'My message here", "pnotify");

```

Adding an alert with "extra" attributes. Extra attributes can be used however you want. For example if you want to pass a title, an icon class, etc.

```
Alerts::alert('info', 'My message here', null, ['icon' => 'fa fa-info', 'title' => 'Welcome!', 'timeout' => 4000]);

```

Retrieving all alerts.

```
$alerts = Alerts::all();

```

Retrieving all alerts of a specific type. You simple prefix the "type" with get, for example to retrive all error message: or use the full syntax.

```
$errors = Alerts::getError();
$errors = Alerts::whereType('errors');

```

Retrieving all alerts of a specific type in a specific container, just pass the container as an argument.

```
$alerts = Alerts::getError('pnotify');
$errors = Alerts::whereType('errors')->whereInContainer('pnotify');

```

You can also retrieve all alerts that are **not** of a specific type. You can pass either a string or an array here.

```
$errors = Alerts::notError('errors');
$errors = Alerts::whereNotType('errors');

```

### Containers

[](#containers)

Containers can be used to group notifications. For example if you want to pass form validation errors, you could have a "validation" container, or if you want certain notifications to display using a javascript growl type notification, you could group those in a "notifications" container.

Retrieving all alerts in a specific container, you just prefix the container name with "where":

```
$alerts = Alerts::whereErrors();
$alerts = Alerts::whereInContainer('errors');

```

To retrieve all alerts in a specific container with a specific type, just pass the type as an argument.

```
$alerts = Alerts::whereNotification('info');
$alerts = Alerts::whereInContainer('errors')->whereType('info');

```

To retrieve all alerts that are not in a specific container. You can pass either a string or an array here.

```
$alerts = Alerts::whereNotInContainer('validation');

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

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

4049d ago

### Community

Maintainers

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

---

Top Contributors

[![berrymediagroup](https://avatars.githubusercontent.com/u/1258171?v=4)](https://github.com/berrymediagroup "berrymediagroup (5 commits)")[![dberry37388](https://avatars.githubusercontent.com/u/1000887?v=4)](https://github.com/dberry37388 "dberry37388 (1 commits)")

---

Tags

frameworklaravelsupport

### Embed Badge

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

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

###  Alternatives

[dragon-code/support

Support package is a collection of helpers and tools for any project.

238.7M101](/packages/dragon-code-support)[hemp/presenter

Easy Model Presenters in Laravel

247592.6k1](/packages/hemp-presenter)[rahulalam31/laravel-abuse-ip

Block ip address of all spammer's around the world.

27431.5k](/packages/rahulalam31-laravel-abuse-ip)[laravelbook/laravel4-powerpack

Port of Laravel 3's HTML, Form and Str classes

833.8k](/packages/laravelbook-laravel4-powerpack)

PHPackages © 2026

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