2017 © Pedro Peláez
 

yii2-extension yii2-expo

Yii2 extension for working with Expo push notifications

image

azasar/yii2-expo

Yii2 extension for working with Expo push notifications

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

The README.md

Yii2 Expo Push Notifications

Yii2 extension for working with Expo push notifications, (*1)

Installation

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

Either run, (*3)

php composer.phar require --prefer-dist azasar/yii2-expo "*"

or add, (*4)

"azasar/yii2-expo": "*"

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

Config

Once the extension is installed, add it to your config file(main.php) :, (*6)

'expo' => [
            'class' => 'azasar\expo\ExpoPush'
        ],

Usage

$data = [
    'title' => 'Some title',
    'text' => 'Some text'
];
$notification = ['body' => $text, 'data' => $data];
\Yii::$app->expo->notify('ExponentPushToken[xxxxxxxxxxxxx]', $notification);

$data is optional, (*7)

The Versions

08/02 2018

dev-master

9999999-dev

Yii2 extension for working with Expo push notifications

  Sources   Download

MIT

The Requires

 

by Sarsenbayev Azamat

extension yii2 push-notification expo exponent

08/02 2018

v1.0

1.0.0.0

Yii2 extension for working with Expo push notifications

  Sources   Download

MIT

The Requires

 

by Sarsenbayev Azamat

extension yii2 push-notification expo exponent