PHP code example of abdullahobaid / mobilywslaraval

1. Go to this page and download the library: Download abdullahobaid/mobilywslaraval 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/ */

    

abdullahobaid / mobilywslaraval example snippets


$ php artisan vendor:publish --provider="abdullahobaid\mobilywslaraval\MobilywsProvider"
 
return [
    'sender'     => '', // Mobily.ws Sender Name
    'mobile'     => '', // Mobily.ws Account Mobile (Username)
    'password'   => '', // Mobily.ws Password
    'deleteKey'  => 541235, 
    'resultType' => 1,
    'viewResult' => 1, 
    'MsgID'      => rand(00000,99999), 
];

 
Mobily::send(966555555555, 'Your Message Here');
 
$numbers = array('966555555555','966545555555','966565555555');
Mobily::send($numbers, 'Your Message Here');
 
Mobily::send(966555555555, 'Your Message Here', $date, $time);
 
Mobily::Balance();
 
Mobily::count_messages($text);
 
Mobily::send(966555555555, 'Your Message Here', $date=0, $time=0,'Sender Name');