2017 © Pedro Peláez
 

library push-notification

Send notifications for device mobiles

image

albo-vieira/push-notification

Send notifications for device mobiles

  • Wednesday, September 28, 2016
  • by AlboVieira
  • Repository
  • 2 Watchers
  • 6 Stars
  • 24 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 4 % Grown

The README.md

push-notification

Send push-notifications for Android(with GCM) and IOS., (*1)

Install

composer require albo-vieira/push-notification dev-master 

Usage

Copy the file push_config and require it in your project, set the options as you need., (*2)

include('push_config.php');

ANDROID, (*3)

$result = $android = PushNotification\PushFactory::getInstance('android', $pushConfig)
    ->withTokens([
        'TOKENS',
    ])
    ->withNotification(['title' => 'title', 'text' => 'Texto'])
    ->send();
print_r($result);  

IOS, (*4)

$result = $ios = PushNotification\PushFactory::getInstance('ios', $pushConfig)
    ->withTokens(['TOKENS'])
    ->withNotification(['alert' => 'Texto', 'badge' => 1, 'sound' => 'default'])
    ->send();
print_r($result);

The Versions

28/09 2016

dev-patch-2

dev-patch-2

Send notifications for device mobiles

  Sources   Download

MIT

The Requires

 

by Albo Vieira

28/09 2016

dev-patch-1

dev-patch-1

Send notifications for device mobiles

  Sources   Download

MIT

The Requires

 

by Albo Vieira

25/08 2016

dev-dev

dev-dev

Send notifications for device mobiles

  Sources   Download

MIT

The Requires

 

by Albo Vieira

25/08 2016

dev-master

9999999-dev

Send notifications for device mobiles

  Sources   Download

MIT

The Requires

 

by Albo Vieira