|  Download SimplePushSend mailuse SimplePush;
$aConfigs = array(
	'method' => smtp //or mail
    'host' => smtp.gmail.com
    'user' => [email protected]
    'password' => hellopass
    'authenticate' => tls // or ssl
    'port' => 587
);
$aMessage = array(
	'subject' => "Hello Mail"
    'content' => "Mail content"
    'from' => [email protected]
);
$oInstance = new SimplePush\Mail($aConfigs);
$oInstance->message($aMessage);
$oInstance->to("[email protected]");
$oInstance->send();
$mResults = $oInstance->getResults();
$aTmpError = $oInstance->getErrors();
 Push to Android deviceuse SimplePush;
$aConfigs = array(
    'app_mode' => "production" //or development
    'api_access_key' => "Project API Key got from Google"
    
);
$aMessage = array(
   'command' => '2',
   'message' => 'Hello Android', 
   'your_param' => 'your_value'
);
$oInstance = new SimplePush\Android($aConfigs);
$oInstance->message($aMessage);
$oInstance->to("device_token_id");
$oInstance->send();
$mResults = $oInstance->getResults();
$aTmpError = $oInstance->getErrors();
 Push to iOS deviceuse SimplePush;
$aConfigs = array(
    'app_mode' => "production" //or development
    'certification_file' => "Link to pem file"
    'password' => "" // passphrase for certificated file. 
   
);
$aMessage = array(
   'aps' => array(
      'alert' => 'Hello iOS',
      'sound' => 'default'
   )
);
$oInstance = new SimplePush\IOS($aConfigs);
$oInstance->message($aMessage);
$oInstance->to("device_token_id");
$oInstance->send();
$mResults = $oInstance->getResults();
$aTmpError = $oInstance->getErrors();
 |