webdevbr / php-ionic-push-notification
Push notification component for PHP
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/webdevbr/php-ionic-push-notification
Requires
- guzzlehttp/guzzle: ~6.0
This package is auto-updated.
Last update: 2025-09-07 18:08:16 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.