fgh151/yii2-push

Mobile (Android, ios) push notifications extension

Installs: 38

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 1

Open Issues: 0

Type:yii2-extension

0.0.1 2016-01-14 08:06 UTC

This package is auto-updated.

Last update: 2024-03-28 21:47:57 UTC


README

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist fgh151/yii2-push "*"

or add

"fgh151/yii2-push": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply add it in your config by :

Basic config/web.php

Advanced [backend|frontend|common]/config/main.php

    'modules'    => [
        'push' => [
            'class' => 'fgh151\modules\push\Module',
        ],
        ...
        ...
    ],
"android", $idphone=>"android_smart_phone_id_here", $mst=>"Hello, an android user"); $rtn = $push->sendMessage($params); //print_r($rtn);