PHPackages                             aitor24/notifier - 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. aitor24/notifier

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

aitor24/notifier
================

Laravel package to display notifications from different JS libraries easily in the frontend

1.0.1(8y ago)522MITPHPPHP &gt;=5.6.4

Since Dec 15Pushed 8y ago1 watchersCompare

[ Source](https://github.com/24aitor/Notifier)[ Packagist](https://packagist.org/packages/aitor24/notifier)[ RSS](/packages/aitor24-notifier/feed)WikiDiscussions master Synced 2w ago

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

[![](https://camo.githubusercontent.com/ea02578c91fda0efabe7d9260caa3ef4622944b5a937e187f3a1e864e32063e5/68747470733a2f2f692e696d6775722e636f6d2f704b56717569542e706e67)](https://camo.githubusercontent.com/ea02578c91fda0efabe7d9260caa3ef4622944b5a937e187f3a1e864e32063e5/68747470733a2f2f692e696d6775722e636f6d2f704b56717569542e706e67)

Notifier
========

[](#notifier)

 [![StyleCI](https://camo.githubusercontent.com/5b48cf48763481cb3ad8515c41352200e26d813c02efcaef9ec39a679359cdcd/68747470733a2f2f7374796c6563692e696f2f7265706f732f39373431363834352f736869656c643f7374796c653d666c6174266272616e63683d6d6173746572)](https://styleci.io/repos/97416845) [![Version](https://camo.githubusercontent.com/ae55feef4c01169b90b58ea4aa42b676a4d6a3369b24f2bb3effccde4aaf039f/68747470733a2f2f706f7365722e707567782e6f72672f6169746f7232342f6e6f7469666965722f762f737461626c652e737667)](https://github.com/24aitor/Notifier/releases) [![License](https://camo.githubusercontent.com/0da9ab149f0433b42c6dc13b90780a5b2e86e20d153d8e6c6a6447f28c2dd6fb/68747470733a2f2f706f7365722e707567782e6f72672f6169746f7232342f6e6f7469666965722f6c6963656e73652e737667)](https://raw.githubusercontent.com/24aitor/Notifier/master/LICENSE)

Laravel package to generate easily js notifications from php code

Getting started
---------------

[](#getting-started)

### Register Service Provider &amp; Alias

[](#register-service-provider--alias)

If you're using laravel 5.5, you don't need to register Service Provider nor Alias. Else, you should do it!

#### Register Service Provider

[](#register-service-provider)

```
Aitor24\Notifier\NotifierServiceProvider::class,

```

#### Register Alias

[](#register-alias)

```
'Notifier' => Aitor24\Notifier\Facades\Notifier::class,

```

Simple example
--------------

[](#simple-example)

```

        {!! Notifier::assets('sweetalert') !!}

        {!! Notifier::notify('Permission denied', 'error')->subtitle('You have not access to this site!') !!}

```

Catching base session notifications
-----------------------------------

[](#catching-base-session-notifications)

If you don't want to call notify function everytime, all function is your solution. This function catch all session base messages (success, info, error, and warning) and you only need to put the code in the layout as following example.

### Controller example

[](#controller-example)

You should do redirect with `->with()` function to flash messages for next request on session.

```
public function redirect()
{
    return redirect()->route('welcome')->with('success', 'All done!');
}
```

### Layout example

[](#layout-example)

Then your layout should have similar structure to following code snippet

```

        {!! Notifier::assets('sweetalert') !!}

        {!! Notifier::all('sweetalert') !!}

```

Function `all()` can be called without parameters, then the library will be the config('notifier.defaults.library') library.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.4% 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 ~0 days

Total

2

Last Release

3119d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a56e20e7af7971bdf153b60a506c54be8e2bbeb3a7cd15e1ac04247829299040?d=identicon)[24aitor](/maintainers/24aitor)

---

Top Contributors

[![24aitor](https://avatars.githubusercontent.com/u/20477883?v=4)](https://github.com/24aitor "24aitor (34 commits)")[![ConsoleTVs](https://avatars.githubusercontent.com/u/6124435?v=4)](https://github.com/ConsoleTVs "ConsoleTVs (2 commits)")

### Embed Badge

![Health badge](/badges/aitor24-notifier/health.svg)

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

###  Alternatives

[propaganistas/laravel-disposable-email

Disposable email validator

6012.9M7](/packages/propaganistas-laravel-disposable-email)[illuminate/mail

The Illuminate Mail package.

5910.4M475](/packages/illuminate-mail)[laravel-notification-channels/apn

Apple APN Push Notification Channel

2022.1M6](/packages/laravel-notification-channels-apn)[illuminate/notifications

The Illuminate Notifications package.

483.0M1.1k](/packages/illuminate-notifications)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

252143.0k](/packages/erag-laravel-disposable-email)

PHPackages © 2026

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