PHP code example of ahmed-aliraqi / mobilysms

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

    

ahmed-aliraqi / mobilysms example snippets

 

Mobilysms\MobilySmsProvider::class, 

 
'Mobily'    => Mobilysms\Mobily::class,
 
Mobily::send(20123456789,'Your Message Here ');
 

return [
	'sender'  =>'Ahmed', // Sender Name With Mobily.ws
	'mobile'  =>'123456789', // Mobile User Account With Mobily.ws
	'password'=>'password here', // Password Account With Mobile.ws
	'timeSend'=>0, // If You Don't know what this please don't change anything
	'dateSend'=>0, // If You Don't know what this please don't change anything
	'deleteKey'=>152485, // If You Don't know what this please don't change anything
	'resultType'=>1, // If You Don't know what this please don't change anything
	'viewResult'=>1, // If You Don't know what this please don't change anything
	'MsgID'=>rand(0000,9999), // If You Don't know what this please don't change anything
];

 
$send = Mobily::send(123456789,'message');
if($send == true)
{
echo 'message sent';
}else{
echo $send;
}

 php artisan vendor:publish