PHP code example of bellal / vodafone-sms
1. Go to this page and download the library: Download bellal/vodafone-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/ */
bellal / vodafone-sms example snippets
use Bellal\VodafoneSMS\VodafoneAdapter;
$messageProviderInstance = new VodafoneAdapter([
'accountId' => 'VODAFONE_ACCOUNT_ID',
'password' => 'VODAFONE_PASS',
'secretKey' => 'VODAFONE_SECRET_KEY',
'senderName' => 'VODAFONE_SENDER_NAME',
]);
$result = $messageProviderInstance->send([
'to' => 'RECIEVER_NUMBER',
'text' => 'MESSAGE_BODY',
]);