webdevbr/php-ionic-push-notification

There is no license information available for the latest version (dev-master) of this package.

Push notification component for PHP

Maintainers

Package info

github.com/erikfig/php-ionic-push-notification

pkg:composer/webdevbr/php-ionic-push-notification

Statistics

Installs: 10

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-master 2016-05-28 17:17 UTC

This package is auto-updated.

Last update: 2026-03-07 19:24:01 UTC


README

Install

To install this package run:

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

Or add this line to require in the composer.json:

"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.