PHPackages                             osaris-uk/notify - 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. osaris-uk/notify

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

osaris-uk/notify
================

Flexible flash notifications for Laravel

1.1(3y ago)06MITPHPPHP &gt;=5.4.0

Since Sep 17Pushed 3y agoCompare

[ Source](https://github.com/osaris-uk/notify)[ Packagist](https://packagist.org/packages/osaris-uk/notify)[ RSS](/packages/osaris-uk-notify/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Osaris UK - Notify
==================

[](#osaris-uk---notify)

Install
-------

[](#install)

Using Composer

```
composer require osaris-uk/notify

```

Add the service provider to `config/app.php`

```
OsarisUk\Notify\NotifyServiceProvider::class,
```

Optionally include the Facade in `config/app.php` if you'd like.

```
'Notify' => OsarisUk\Notify\Facades\Notify::class,
```

> Note, there is a notify() function available, so unless you really want to use the Facade, there's no need to include it.

Usage
-----

[](#usage)

### Basic

[](#basic)

From your application, call the `flash` method with a message and type.

```
notify()->flash('Welcome back!', 'success');
```

Within a view, you can now check if a flash message exists and output it.

```
@if (notify()->ready())

        {{ notify()->message() }}

@endif
```

> Notify is front-end framework agnostic, so you're free to easily implement the output however you choose.

### Options

[](#options)

You can pass additional options to the `flash` method, which are then easily accessible within your view.

```
notify()->flash('Welcome back!', 'success', [
    'timer' => 3000,
    'text' => 'It\'s really great to see you again',
]);
```

Then, in your view.

```
@if (notify()->ready())

        swal({
            title: "{!! notify()->message() !!}",
            text: "{!! notify()->option('text') !!}",
            type: "{{ notify()->type() }}",
            @if (notify()->option('timer'))
                timer: {{ notify()->option('timer') }},
                showConfirmButton: false
            @endif
        });

@endif
```

> The above example uses SweetAlert, but the flexibility of Notify means you can easily use it with any JavaScript alert solution.

Issues and contribution
-----------------------

[](#issues-and-contribution)

Just submit an issue or pull request through GitHub. Thanks!

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity43

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.

###  Release Activity

Cadence

Every ~1 days

Total

2

Last Release

1329d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c655f8ff1687b3f3a9156d917431f14c05dbc187e19e11201348c894afb35045?d=identicon)[osaris-uk](/maintainers/osaris-uk)

---

Top Contributors

[![john-dent](https://avatars.githubusercontent.com/u/24832003?v=4)](https://github.com/john-dent "john-dent (3 commits)")

### Embed Badge

![Health badge](/badges/osaris-uk-notify/health.svg)

```
[![Health](https://phpackages.com/badges/osaris-uk-notify/health.svg)](https://phpackages.com/packages/osaris-uk-notify)
```

###  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)[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)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[illuminate/mail

The Illuminate Mail package.

5910.1M391](/packages/illuminate-mail)

PHPackages © 2026

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