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

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

pandudud/notify
===============

Duplicate from codecourse/notify

v1.0(3y ago)18MITPHPPHP &gt;=5.4.0

Since Jun 17Pushed 3y ago1 watchersCompare

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

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

[![Notify](https://camo.githubusercontent.com/fa50bff4afb24b3c4bc2a3b1bac24fd2ccc51c4ff4216f03d2f83a19a5964d1e/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f73332e636f6465636f757273652e636f6d2f6769746875622f62616e6e6572732f6e6f746966792e706e67)](https://camo.githubusercontent.com/fa50bff4afb24b3c4bc2a3b1bac24fd2ccc51c4ff4216f03d2f83a19a5964d1e/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f73332e636f6465636f757273652e636f6d2f6769746875622f62616e6e6572732f6e6f746966792e706e67)

Install
-------

[](#install)

Using Composer

```
composer require pandudud/notify

```

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

```
Codecourse\Notify\NotifyServiceProvider::class,
```

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

```
'Notify' => Codecourse\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
```

[![SweetAlert example](https://camo.githubusercontent.com/4abd53841ca76c2567e4504e1527f1fac034a70301ea6fe5f79db1abbdb17f09/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f73332e636f6465636f757273652e636f6d2f6769746875622f6e6f746966792f7377616c2d6578616d706c652e706e67)](https://camo.githubusercontent.com/4abd53841ca76c2567e4504e1527f1fac034a70301ea6fe5f79db1abbdb17f09/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f73332e636f6465636f757273652e636f6d2f6769746875622f6e6f746966792f7377616c2d6578616d706c652e706e67)

> The above example uses SweetAlert, but the flexibily 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

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

Unknown

Total

1

Last Release

1429d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/993fc9446008b73eb3630b3688c623bfb88860fe839a40c74c7c82c5ecc77ef9?d=identicon)[pandudud](/maintainers/pandudud)

---

Top Contributors

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

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/pandudud-notify/health.svg)](https://phpackages.com/packages/pandudud-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)
