kingscode/appcenter-push

PHP AppCenter Push client.

0.1.3 2018-03-06 12:56 UTC

This package is auto-updated.

Last update: 2024-10-29 04:53:30 UTC


README

Packagist license Packagist

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);