PHPackages                             iamfaiz/alerter - 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. iamfaiz/alerter

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

iamfaiz/alerter
===============

0.0.10(10y ago)128PHP

Since Aug 6Pushed 10y ago1 watchersCompare

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

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

Laravel Alerter - Easy flash alerts for Laravel 5
=================================================

[](#laravel-alerter---easy-flash-alerts-for-laravel-5)

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

[](#installation)

Pull in the package using Composer.

```
composer require iamfaiz/alerter

```

Then add the service provider in the config/app.php.

```
'providers' => [
    'Alerter\AlerterServiceProvider'
];
```

And, for convenience, add a facade alias to this same file at the bottom.

```
'aliases' => [
    'Alert' => 'Alerter\Alert'
];
```

Lastly run the following command.

```
php artisan vendor:publish

```

This will create config/alerter.php file. This file can be used if you don't want to use the default bs3 (Bootstrap 3) driver for your flash alerts.

Usage
-----

[](#usage)

Within your controllers, before you perform a redirect.

```
public function store()
{
    Alert::success('Successfully added a new task');

    return redirect()->back();
}
```

You can use:

```
Alert::success($message, $title);
Alert::info($message, $title);
Alert::error($message, $title);
```

And within your master layout file add this.

```
>

        {{ Alert::render() }}
        @yield('content')

```

If you are using twitter bootstrap the styling would look great by default.That's because in config/alerter.php the driver is set to 'bs3'. Currently 2 drivers comes straight out of the box (bs3, toastr.js) but obviously you can add more.

Toastr Driver
=============

[](#toastr-driver)

You can also use toastr alerts. Toastr is a popular javascript plugin. You can read more about it from [here](https://github.com/CodeSeven/toastr) and check out the demo from [here](http://codeseven.github.io/toastr/demo.html).

Before you use this driver make sure that you have jquery and toastr's javascript and css files loaded on your master layout.

```
>

        {{ Alert::render() }}
        @yield('content')

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

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

Total

11

Last Release

3936d ago

### Community

Maintainers

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

---

Top Contributors

[![thefaiz](https://avatars.githubusercontent.com/u/77179213?v=4)](https://github.com/thefaiz "thefaiz (15 commits)")

### Embed Badge

![Health badge](/badges/iamfaiz-alerter/health.svg)

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

###  Alternatives

[prologue/alerts

Prologue Alerts is a package that handles global site messages.

3486.1M30](/packages/prologue-alerts)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[prettybx/support

Pretty Bitrix

195.5k1](/packages/prettybx-support)

PHPackages © 2026

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