PHP code example of dominikveils / global-sms
1. Go to this page and download the library: Download dominikveils/global-sms 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/ */
dominikveils / global-sms example snippets
= new Dominik\GlobalSMS\Config([
'un' => '', // GlobalSMS UN
'pw' => '', // GlobalSMS PW
'syspw' => '', // GlobalSMS SYSPW
'accid' => '', // GlobalSMS ACCID
'from' => '', // GlobalSMS FROM phone number,
'wsdl_url' => '',
]);
$service = new Dominik\GlobalSMS\GlobalSMS($config);
// $to = "__PHONE__";
// $message = "__MESSAGE__";
// var_dump($service->send($to, $message));
// var_dump($service->getSmsCount());
// $response = $service->getSmsDeliveryStatuses(date('d'));