PHPackages                             jralph/notification - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. jralph/notification

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

jralph/notification
===================

1.1.1(11y ago)026MITPHPPHP &gt;=5.4.0

Since Oct 9Pushed 11y ago1 watchersCompare

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

READMEChangelog (5)Dependencies (4)Versions (6)Used By (0)

Laravel 4 Flash Notifications
=============================

[](#laravel-4-flash-notifications)

[![Latest Stable Version](https://camo.githubusercontent.com/6001c30b82a1036ff5b951a7575991968c5ef7718097c52968a4e9f2e675a34d/68747470733a2f2f706f7365722e707567782e6f72672f6a72616c70682f6e6f74696669636174696f6e2f762f737461626c652e737667)](https://packagist.org/packages/jralph/notification) [![Total Downloads](https://camo.githubusercontent.com/f7144496f3718c5ae3d408016ba00dbc2c90389f2a8833e5938c16d5e30a6c83/68747470733a2f2f706f7365722e707567782e6f72672f6a72616c70682f6e6f74696669636174696f6e2f646f776e6c6f6164732e737667)](https://packagist.org/packages/jralph/notification) [![Latest Unstable Version](https://camo.githubusercontent.com/6ba5335efa870732e8092c2703ac7c6d2f273a413c1e653defb18799ae724700/68747470733a2f2f706f7365722e707567782e6f72672f6a72616c70682f6e6f74696669636174696f6e2f762f756e737461626c652e737667)](https://packagist.org/packages/jralph/notification) [![License](https://camo.githubusercontent.com/a48b0216c0f1e739b9c3ffd36f037d847ac43ff45b6963bb3115affa261b2624/68747470733a2f2f706f7365722e707567782e6f72672f6a72616c70682f6e6f74696669636174696f6e2f6c6963656e73652e737667)](https://packagist.org/packages/jralph/notification)

A simple and easy to use flash notification setup for Laravel 4.

### Extension

[](#extension)

By default, the notifications are handled by the Illuminate Session Store but this can be easily replaced by implementing the `Jralph\Notification\Contracts\Store` contract provided and then bound using the IoC container. Once done, any existing code will continue to work as normal. For example, you could easily switch out the Session Store for your own form of storage for flash messages.

Usage
-----

[](#usage)

### Laravel

[](#laravel)

To use the Notification in Laravel, you can add the service provider and alias to your `app/config/app.php` file.

```

```

Once this is done, you can use the facade like so.

```

```

*See below for more information on the methods the class provides.*

### Methods

[](#methods)

**PUT**

The put method flashes a key =&gt; value message to the session.

```

```

**GET**

The get method retrieves a value from the session by key.

```

```

**HAS**

The has method checks if a key exists in the notification session storage.

```

```

**TAGS**

The tags method can be combined with the put method to tag specific notifications.

```

```

**TAG**

The tag method is used to retrieve an array of notifications attached to a specific tag.

```

```

### Example Usage

[](#example-usage)

In a controller processing login somewhere.

```

```

Somewhere in a view displaying the login form somewhere.

```
@foreach (Notification::tag('error') as $key => $notification)

        {{ $key }} {{ $notification }}

@endforeach

```

You could also disregard the tags for a simpler approach and just display the validation failed error.

```
@if (Notification::has('validation_failed'))

        Validation Failed {{ Notification::get('validation_failed') }}

@endif

```

### Upcoming Features

[](#upcoming-features)

- Add a default tag that is not overwritten.
    - **OR** add the `Notification::all()` method to retrieve all messages.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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

5

Last Release

4239d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/40961dbdd7f3ae5a69c3964bed644239689c6ae64b1355b9b5d504233f271bc9?d=identicon)[jralph](/maintainers/jralph)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jralph-notification/health.svg)

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

###  Alternatives

[mckenziearts/laravel-notify

Flexible flash notifications for Laravel

1.7k1.1M5](/packages/mckenziearts-laravel-notify)[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[brian2694/laravel-toastr

toastr.js for Laravel

136649.4k5](/packages/brian2694-laravel-toastr)[edvinaskrucas/notification

Package for Laravel for helping to manage flash / instant notifications / messages.

520393.9k10](/packages/edvinaskrucas-notification)[laravel-notification-channels/apn

Apple APN Push Notification Channel

2021.9M4](/packages/laravel-notification-channels-apn)[laravel-notification-channels/microsoft-teams

A Laravel Notification Channel for Microsoft Teams

1603.0M7](/packages/laravel-notification-channels-microsoft-teams)

PHPackages © 2026

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