mobagel / notificationhubs-rest-php
Microsoft Azure Notification Hub library for PHP, fork from webware.Inc project
Installs: 111
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 14
pkg:composer/mobagel/notificationhubs-rest-php
Requires
- php: >=5.3.0
Requires (Dev)
- phpunit/phpunit: ~4.8.0
This package is not auto-updated.
Last update: 2025-10-12 00:41:45 UTC
README
This is a implementation of a REST wrapper using the REST APIs of Notification Hubs from a PHP back-end.
How to use the code above
Initialize your Notification Hubs client (substitute the connection string and hub name as instructed in the Get started tutorial):
$hub = new NotificationHub("connection string", "hubname");
Then add the send code depending on your target mobile platform.
iOS
$factory = new NotificationFactory();
$notification = $factory->createNotification("apple", "Hello from PHP!");
$hub->sendNotification($notification);
Android
$factory = new NotificationFactory();
$notification = $factory->createNotification("gcm", "Hello from PHP!");
$hub->sendNotification($notification);
Notes
This code is provided as-is with no guarantees.