The [PushBots PHP Client] (https://www.pushbots.com/) is a PHP client for PushBots API sending functionality.
The minimal you'll need to have is:
// Push The notification with parameters
require_once('PushBots.class.php');
$pb = new PushBots();
// Application ID
$appID = '';
// Application Secret
$appSecret = '';
$pb->App($appID, $appSecret);
// Notification Settings
$pb->Alert($msg);
$pb->Sound($sound);
$pb->Badge($badge);
$pb->Platform($platforms);
// Tags Array
$pb->Tags($tags);
// Custom fields
$pb->Payload($customfields);
// Push it !
$pb->Push();
// Update Alias
/**
* set Alias Data
* @param integer $platform 0=> iOS or 1=> Android.
* @param String $token Device Registration ID.
* @param String $alias New Alias.
*/
$pb->AliasData(1, "APA91bFpQyCCczXC6hz4RTxxxxx", "test");
// set Alias on the server
$pb->setAlias();
// Push to Single Device
// Notification Settings
$pb->AlertOne("test Mesage");
//Remove device by Alias
$pb->removeByAlias("myalias");
));