kingscode/appcenter-push

PHP AppCenter Push client.

Installs: 2 275

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 5

Forks: 0

Open Issues: 0

pkg:composer/kingscode/appcenter-push

0.1.3 2018-03-06 12:56 UTC

This package is auto-updated.

Last update: 2025-09-29 01:51:38 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);