kingscode / appcenter-push
PHP AppCenter Push客户端。
0.1.3
2018-03-06 12:56 UTC
Requires
- php: >=5.6
- guzzlehttp/guzzle: ^6.0
This package is auto-updated.
Last update: 2024-09-29 04:43:13 UTC
README
PHP AppCenter Push客户端。
安装
需要此包。
composer require kingscode/appcenter-push
使用
// 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);