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

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

swisslinx/notify
================

Flexible flash notifications for Laravel

00PHP

Since Oct 30Pushed 5y ago1 watchersCompare

[ Source](https://github.com/swisslinx/Notify)[ Packagist](https://packagist.org/packages/swisslinx/notify)[ RSS](/packages/swisslinx-notify/feed)WikiDiscussions main Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

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

Install
-------

[](#install)

Using Composer

```
composer require codecourse/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

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

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

PHPackages © 2026

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