PHP code example of zortje / boxcar-notifications-php
1. Go to this page and download the library: Download zortje/boxcar-notifications-php 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/ */
zortje / boxcar-notifications-php example snippets
$boxcar = new \Zortje\BoxcarNotifications\Boxcar('secret_access_token');
$boxcar->setSourceName('ACME');
$boxcar->setSound('notifier-1');
$boxcar->setIconUrl('http://new.boxcar.io/images/rss_icons/boxcar-64.png');
$boxcar->setOpenUrl('http://maps.google.com/maps?q=cupertino');
$notification = new \Zortje\BoxcarNotifications\Notification('Message title', '<b>Bold</b> content text.');
$boxcar->push($notification);
JSON
{
"ortje/boxcar-notifications-php": "~1.0"
}
}