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

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

jjsoft-ar/notification-module
=============================

Module handling the real time notifications

1.4.0(10y ago)04MITPHPPHP &gt;=5.4

Since Nov 18Pushed 9y ago1 watchersCompare

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

READMEChangelogDependencies (4)Versions (7)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)[![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)

#### Require the module in your project

[](#require-the-module-in-your-project)

```
composer require asgardcms/notification-module

```

#### Publish the configuration

[](#publish-the-configuration)

```
php artisan module:publish 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](http://laravel.com/docs/5.1/events#broadcasting-events) 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.

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

26

—

LowBetter than 40% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 98.5% 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 ~57 days

Recently: every ~71 days

Total

6

Last Release

3636d ago

Major Versions

1.4.0 → 2.0.x-dev2016-08-31

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

2.0.x-devPHP &gt;=5.6

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1932829?v=4)[Aguara Gazu](/maintainers/aguaragazu)[@aguaragazu](https://github.com/aguaragazu)

---

Top Contributors

[![nWidart](https://avatars.githubusercontent.com/u/882397?v=4)](https://github.com/nWidart "nWidart (64 commits)")[![aguaragazu](https://avatars.githubusercontent.com/u/1932829?v=4)](https://github.com/aguaragazu "aguaragazu (1 commits)")

---

Tags

notificationspusherasgardcms

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/jjsoft-ar-notification-module/health.svg)](https://phpackages.com/packages/jjsoft-ar-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)[asgardcms/notification-module

Module handling the real time notifications

205.0k](/packages/asgardcms-notification-module)[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)
