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

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

bsadjetey/notify
================

Flexible flash notifications for Laravel

v0.0.0(1y ago)07MITPHPPHP &gt;=5.4.0

Since Oct 5Pushed 1y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)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`

```
Bsadjetey\Notify\NotifyServiceProvider::class,
```

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

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

18

—

LowBetter than 8% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity24

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

590d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[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)[eduardokum/laravel-mail-auto-embed

Library for embed images in emails automatically

1702.0M5](/packages/eduardokum-laravel-mail-auto-embed)

PHPackages © 2026

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