PHP code example of tawba / push-notification
1. Go to this page and download the library: Download tawba/push-notification library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tawba / push-notification example snippets
php index.php
use Tawba\PushNotification\NotificationService;
$notify = new NotificationService();
echo "<pre>";
print_r($notify->send("android", ['testID', ['Test MSG']])); // You can pass android, ios, windowsphone, chrome, firefox