PHP code example of mobileactive / mobak-php-sdk-xml
1. Go to this page and download the library: Download mobileactive/mobak-php-sdk-xml 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/ */
mobileactive / mobak-php-sdk-xml example snippets
use mobak\Mobak;
$smsSender = new Mobak([
'login' => 'YOUR_LOGIN',
'password' => 'YOUR_PASSWORD',
])
$result = $smsSender->send([
'message' => "Your message text",
'sender' => "Info",
'phone' => '79194839xxx'
]);
// получить результат в виде массива
var_dump($result->toArray());
{
""mobileactive/mobak-php-xml-sdk" : "1.0.*"
}
}