2017 © Pedro Peláez
 

asgard-module notification-module

Module handling the real time notifications

image

jjsoft-ar/notification-module

Module handling the real time notifications

  • Saturday, September 17, 2016
  • by aguaragazu
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 15 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Notification module

Latest Version Software License Quality Score SensioLabs Insight, (*1)

Total Downloads Total Downloads Total Downloads Slack, (*2)

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

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

php /** * 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);, (*5)

Notifications demo screenshot Quick demo, (*6)


Installation

Require the module in your project

composer require asgardcms/notification-module

Publish the configuration

php artisan module:publish notification

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., (*7)

Currently, Laravel 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 for inspiration., (*8)

Usage

Usage is simple and straightforward:, (*9)

Inject the Modules\Notification\Services\Notification interface where you need it and assign it to a class variable., (*10)

Send notification to logged in user

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


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

The Versions

17/09 2016

dev-master

9999999-dev

Module handling the real time notifications

  Sources   Download

MIT

The Requires

 

The Development Requires

notifications pusher asgardcms

31/08 2016

2.0.x-dev

2.0.9999999.9999999-dev

Module handling the real time notifications

  Sources   Download

MIT

The Requires

 

The Development Requires

notifications pusher asgardcms

08/06 2016

1.4.0

1.4.0.0

Module handling the real time notifications

  Sources   Download

MIT

The Requires

 

The Development Requires

notifications pusher asgardcms

18/12 2015

1.3.0

1.3.0.0

Module handling the real time notifications

  Sources   Download

MIT

The Requires

 

The Development Requires

notifications pusher asgardcms

27/11 2015

1.2.0

1.2.0.0

Module handling the real time notifications

  Sources   Download

MIT

The Requires

 

The Development Requires

notifications pusher asgardcms

19/11 2015

1.1.0

1.1.0.0

Module handling the real time notifications

  Sources   Download

MIT

The Requires

 

The Development Requires

notifications pusher asgardcms

18/11 2015

1.0.0

1.0.0.0

Module handling the real time notifications

  Sources   Download

MIT

The Requires

 

The Development Requires

notifications pusher asgardcms