kingscode / appcenter-push
PHP AppCenter Push client.
Installs: 2 272
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 6
Forks: 0
Open Issues: 0
Requires
- php: >=5.6
- guzzlehttp/guzzle: ^6.0
This package is auto-updated.
Last update: 2024-10-29 04:53:30 UTC
README
PHP AppCenter Push client.
Installation
Require the package.
composer require kingscode/appcenter-push
Usage
// Create a notifier... $notifier = Notifier::make() ->setOwnerName($ownerName) // Set the owner name. ->setAppName($appName) // Set the app name. ->setToken($token); // Set the api token. // Create a notification... $notification = Notification::make() ->setName($name) //Set the notification name. ->setTitle($title) //Set the notification title. ->setBody($body); //Set the notification body. // And send the notification... $notifier->send($notification);