2017 © Pedro Peláez
 

yii2-extension yii2-html5-notifications

Yii2 html5 web notifications

image

whagency/yii2-html5-notifications

Yii2 html5 web notifications

  • Monday, June 25, 2018
  • by whagency
  • Repository
  • 0 Watchers
  • 1 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

yii2-html5-notifications

Yii2 extension for converting yii2 flash message to html5 web notifications, (*1)

Latest Stable Version License, (*2)

Installation

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

php composer.phar require "whagency/yii2-html5-notifications" "*"

or add to your composer.json file, (*5)

"require": {
    "whagency/yii2-html5-notifications": "*"
},

Usage Example

  1. Add widget to your page before </body> tag
    ...

    <?= \webheads\notifications\Alert::widget(['options' => [
        'logo' => 'https://github.com/whagency/yii2-html5-notifications/blob/master/demo/icon.png',
        'hideAfter' => 5000,
    ]]) ?>

  </body>
</html>
  1. Set yii2 flash message
Yii::$app->session->setFlash('success', 'My notification message');
  1. Allow html5 messages in your browser

Demo 1, (*6)

  1. Result

Demo 2, (*7)

The Versions

25/06 2018

dev-master

9999999-dev

Yii2 html5 web notifications

  Sources   Download

MIT

The Requires

  • php >=5.4

 

yii2 web html5 notifications flash

25/06 2018

1.0.4

1.0.4.0

Yii2 html5 web notifications

  Sources   Download

MIT

The Requires

  • php >=5.4

 

yii2 web html5 notifications flash

25/06 2018

1.0.3

1.0.3.0

Yii2 html5 web notifications

  Sources   Download

MIT

The Requires

  • php >=5.4

 

yii2 web html5 notifications flash