PHPackages                             wdevmaster/swal-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. wdevmaster/swal-notify

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

wdevmaster/swal-notify
======================

Flexible flash notifications for Laravel

1.1.1(10y ago)05MITPHPPHP &gt;=5.4.0

Since Sep 6Pushed 5y agoCompare

[ Source](https://github.com/wdevmaster/notify)[ Packagist](https://packagist.org/packages/wdevmaster/swal-notify)[ RSS](/packages/wdevmaster-swal-notify/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (1)Versions (5)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

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~28 days

Total

4

Last Release

3858d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8dfecd30561ed11b1659b5c52062ad45a0c6610d5dec84e0eb9e9aca9a78f1aa?d=identicon)[wmaster732](/maintainers/wmaster732)

---

Top Contributors

[![wdevmaster](https://avatars.githubusercontent.com/u/15804358?v=4)](https://github.com/wdevmaster "wdevmaster (2 commits)")[![18601673727](https://avatars.githubusercontent.com/u/3302620?v=4)](https://github.com/18601673727 "18601673727 (1 commits)")[![maxverbeek](https://avatars.githubusercontent.com/u/8481950?v=4)](https://github.com/maxverbeek "maxverbeek (1 commits)")

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[illuminate/pipeline

The Illuminate Pipeline package.

9348.3M267](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10533.5M989](/packages/illuminate-pagination)[illuminate/redis

The Illuminate Redis package.

8314.4M362](/packages/illuminate-redis)[illuminate/cookie

The Illuminate Cookie package.

224.5M132](/packages/illuminate-cookie)

PHPackages © 2026

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