2017 © Pedro Peláez
 

library php-ionic-push-notification

Push notification component for PHP

image

webdevbr/php-ionic-push-notification

Push notification component for PHP

  • Saturday, May 28, 2016
  • by erikfig
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

PHP Push Notifications for Android

Install

To install this package run:, (*1)

composer require webdevbr/php-ionic-push-notification:dev-master

Or add this line to require in the composer.json:, (*2)

"webdevbr/php-ionic-push-notification": "dev-master"

Example

$serverApiKey = 'serverApiKey';
$client = new WebDevBr\Android\Clients\Guzzle;

$push  = new WebDevBr\Android\PushNotifications($serverApiKey, $client);

$to = 'registration_id'; // replate "registration_id" to code of the Android app
$subject = 'Title';
$message = 'Full message';

$data = $push->send($to, $subject, $message);
var_dump($data);

Article

See www.webdevbr.com.br/push-notification-no-android-enviando-notificacoes-do-seu-servidor., (*3)

The Versions

28/05 2016

dev-master

9999999-dev

Push notification component for PHP

  Sources   Download

The Requires