PHPackages                             asgardcms/notification-module - 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. asgardcms/notification-module

ActiveAsgard-module[Mail &amp; Notifications](/categories/mail)

asgardcms/notification-module
=============================

Module handling the real time notifications

3.0.1(8y ago)205.0k14[4 issues](https://github.com/AsgardCms/Notification/issues)MITPHPPHP &gt;=7.0.0

Since Nov 18Pushed 6y ago6 watchersCompare

[ Source](https://github.com/AsgardCms/Notification)[ Packagist](https://packagist.org/packages/asgardcms/notification-module)[ RSS](/packages/asgardcms-notification-module/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (9)Dependencies (5)Versions (11)Used By (0)

Notification module
===================

[](#notification-module)

[![Latest Version](https://camo.githubusercontent.com/38f8d02f50b7e14b9024088d8ee99dd6b1b2b1f2f1ba640727cd04c1125d16fb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f617367617264636d732f6e6f74696669636174696f6e2d6d6f64756c652e7376673f7374796c653d666c61742d737175617265)](https://github.com/asgardcms/notification/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/f729a1ac4ca6dd0d13f91612492fe7133e7262621b462bf3399d15d2cd2fc6cb/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f417367617264436d732f4e6f74696669636174696f6e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/AsgardCms/Notification)[![Quality Score](https://camo.githubusercontent.com/cf4de8a3a580d290ab4728cb4793aef6862e0a29d57a9a0455145c09fc94268c/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f617367617264636d732f6e6f74696669636174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/asgardcms/notification)[![SensioLabs Insight](https://camo.githubusercontent.com/1fade602c08fa1641daa07f6fd47df48a74209ea4d48aadd269c535489ffdd9e/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f30643866363163372d306532662d343662322d396636332d3931663464356162656361352e737667)](https://insight.sensiolabs.com/projects/0d8f61c7-0e2f-46b2-9f63-91f4d5abeca5)

[![Total Downloads](https://camo.githubusercontent.com/9d98526ed065510e838566398f2edbfcd98b21d755c9a3426834073f59d926ab/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64642f617367617264636d732f6e6f74696669636174696f6e2d6d6f64756c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/asgardcms/notification-module)[![Total Downloads](https://camo.githubusercontent.com/e0323cd27bfcf32e3e046157c16c3dfe84f02423fe85d3819709bab694da185c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f617367617264636d732f6e6f74696669636174696f6e2d6d6f64756c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/asgardcms/notification-module)[![Total Downloads](https://camo.githubusercontent.com/4c2e9022fe71cc0c6097df79fdd4e87cf3e44678449aeaa20cc6c874550edb44/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f617367617264636d732f6e6f74696669636174696f6e2d6d6f64756c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/asgardcms/notification-module)[![Slack](https://camo.githubusercontent.com/5379498bc3498bb41df326f2981e2cae90bd1ba46d635bb0c0faedcdc746278d/687474703a2f2f736c61636b2e617367617264636d732e636f6d2f62616467652e737667)](http://slack.asgardcms.com/)

Quickly send (real-time) notifications to your AsgardCms application.

```
$this->notification->push('New subscription', 'Someone has subscribed!', 'fa fa-hand-peace-o text-green', route('admin.user.user.index'));
```

```
/**
* Push a notification on the dashboard
* @param string $title
* @param string $message
* @param string $icon
* @param string|null $link
*/
public function push($title, $message, $icon, $link = null);
```

[![Notifications demo screenshot](https://camo.githubusercontent.com/e566d0895ba4104254fbd99659401b5eced4d5239d092ef441139e70ccd0e4b3/68747470733a2f2f636c6475702e636f6d2f447662387272634a4c762e7468756d622e706e67)](https://camo.githubusercontent.com/e566d0895ba4104254fbd99659401b5eced4d5239d092ef441139e70ccd0e4b3/68747470733a2f2f636c6475702e636f6d2f447662387272634a4c762e7468756d622e706e67)[Quick demo](http://quick.as/7rasgvgv)

---

Installation
------------

[](#installation)

### Module Download

[](#module-download)

Using AsgardCMS's module download command:

```
php artisan asgard:download:module asgardcms/notification --migrations
```

This will download the module and run its migrations .

This is the recommended way if you wish to customise the fields, views, etc.

### Composer

[](#composer)

Execute the following command in your terminal:

```
composer require asgardcms/notification-module
```

**Note: After installation you'll have to give you the required permissions to get to the blog module pages in the backend.**

#### Run migrations

[](#run-migrations)

```
php artisan module:migrate notification
```

### Publish the configuration

[](#publish-the-configuration)

```
php artisan module:publish-config notification
```

Real time?
----------

[](#real-time)

If you want real time notifications over websockets, you need to configure the `broadcasting.php` config file. After that is done, set the `asgard.notification.config.real-time` option to `true`.

Currently, [Laravel broadcasting](https://laravel.com/docs/5.5/broadcasting) supports Pusher and Redis, but AsgardCms only has the front-end integration for Pusher. More integrations are welcome via pull-request. Look at the [Pusher integration](https://github.com/AsgardCms/Notification/blob/master/Assets/js/pusherNotifications.js) for inspiration.

For configuring Pusher, you can add the following lines to your `.env` file:

```
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_ID=
PUSHER_APP_CLUSTER=us2
PUSHER_APP_ENCRYPTED=true

```

Your app's "Getting Started" tab on Pusher's website has a section for `.env`. You can just copy and paste those directly.

Usage
-----

[](#usage)

Usage is simple and straightforward:

Inject the `Modules\Notification\Services\Notification` interface where you need it and assign it to a class variable.

### Send notification to logged in user

[](#send-notification-to-logged-in-user)

```
$this->notification->push('New subscription', 'Someone has subscribed!', 'fa fa-hand-peace-o text-green', route('admin.user.user.index'));
```

### Send notification to a specific user

[](#send-notification-to-a-specific-user)

```
$this->notification->to($userId)->push('New subscription', 'Someone has subscribed!', 'fa fa-hand-peace-o text-green', route('admin.user.user.index'));
```

###  Health Score

34

—

LowBetter than 74% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 90.6% 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 ~87 days

Recently: every ~113 days

Total

10

Last Release

3133d ago

Major Versions

1.4.0 → 2.0.02016-10-18

2.0.0 → 3.0.02017-10-05

PHP version history (3 changes)1.0.0PHP &gt;=5.4

2.0.0PHP &gt;=5.6

3.0.0PHP &gt;=7.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/565946b8d70f5fa172a21f87b7f0e3abdce0611cc1cd300ec8e7b360bdb0a4bc?d=identicon)[nWidart](/maintainers/nWidart)

---

Top Contributors

[![nWidart](https://avatars.githubusercontent.com/u/882397?v=4)](https://github.com/nWidart "nWidart (106 commits)")[![mikemand](https://avatars.githubusercontent.com/u/745184?v=4)](https://github.com/mikemand "mikemand (11 commits)")

---

Tags

notificationspusherasgardcms

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/asgardcms-notification-module/health.svg)

```
[![Health](https://phpackages.com/badges/asgardcms-notification-module/health.svg)](https://phpackages.com/packages/asgardcms-notification-module)
```

###  Alternatives

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.6k10](/packages/helsingborg-stad-municipio)[laravel-notification-channels/pusher-push-notifications

Pusher native Push Notifications driver.

281804.0k1](/packages/laravel-notification-channels-pusher-push-notifications)[artdarek/pusherer

Pusher.com service provider for Laravel 4.

5089.3k](/packages/artdarek-pusherer)[etailors/mautic-amazon-ses

Amazon SES Mailer Plugin for Mautic

595.0k](/packages/etailors-mautic-amazon-ses)[pressbooks/pressbooks-book

This theme is named after Canadian media theorist Marshall McLuhan, who coined the phrase “the medium is the message.” It is designed for academic writing and is also suitable for fiction. Headings are set in Cormorant Garamond, and body type is set in Lora.

226.7k](/packages/pressbooks-pressbooks-book)

PHPackages © 2026

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