PHP code example of mafuth / ooredoo-sms-gateway-php
1. Go to this page and download the library: Download mafuth/ooredoo-sms-gateway-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/ */
mafuth / ooredoo-sms-gateway-php example snippets
use ooredooSMS\ooredooSMS;
$SMS = new ooredooSMS(
'Your Auth Key',
'Your email',
'Your Bearer'
);
$SMS->sendSMS('contact numbers (must be an array)','your message');