2017 © Pedro Peláez
 

yii2-extension yii2-notification

Notification for Yii2

image

yiier/yii2-notification

Notification for Yii2

  • Thursday, February 1, 2018
  • by forecho
  • Repository
  • 4 Watchers
  • 2 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 29 % Grown

The README.md

Notification for Yii2

Notification for Yii2, (*1)

Latest Stable Version Total Downloads Latest Unstable Version License, (*2)

Installation

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

Either run, (*4)

php composer.phar require --prefer-dist yiier/yii2-notification "*"

or add, (*5)

"yiier/yii2-notification": "*"

to the require section of your composer.json file., (*6)

Migrations

Run the following command, (*7)

$ php yii migrate --migrationPath=@yiier/notification/migrations/

Usage

Config, (*8)

Configure Controller class as follows : :, (*9)

<?php
use yiier\notification\actions\NotificationAction;


class NotificationController extends Controller
{
    public function actions()
    {
        return [
            'do' => [
                'class' => NotificationAction::className(),
            ]
        ];
    }
}

Url, (*10)

POST: http://xxxxxxxxxxxxxx/notification/do
Form Data: action=read_all

POST: http://xxxxxxxxxxxxxx/notification/do
Form Data: action=read_all&ids=1,2,3

POST: http://xxxxxxxxxxxxxx/notification/do
Form Data: action=delete_all

POST: http://xxxxxxxxxxxxxx/notification/do
Form Data: action=delete_all&ids=1,2,3

POST: http://xxxxxxxxxxxxxx/notification/do
Form Data: action=delete&id=1

action=delete you can use action=Notification::DEL_ACTION, (*11)

http response success(code==200) return json:, (*12)

{"code":200,"data":0,"message":"success"}

http response failure(code==500) return json:, (*13)

{"code":500,"data":"","message":"xxxx"}

More Notification, (*14)

The Versions

01/02 2018

dev-master

9999999-dev

Notification for Yii2

  Sources   Download

BSD-4-Clause

The Requires

 

extension yii2 notification

01/02 2018

dev-add-license-1

dev-add-license-1

Notification for Yii2

  Sources   Download

BSD-4-Clause

The Requires

 

extension yii2 notification

01/02 2018

v0.2

0.2.0.0

Notification for Yii2

  Sources   Download

BSD-4-Clause

The Requires

 

extension yii2 notification

31/01 2018

v0.1

0.1.0.0

Notification for Yii2

  Sources   Download

BSD-4-Clause

The Requires

 

extension yii2 notification