PHP code example of alxjzx100 / turbosmsua

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

    

alxjzx100 / turbosmsua example snippets



alxjzx100\TurboSmsUA\httpApi;

$httpApi = new httpApi('YOUR_API_KEY');
$httpApi->send('380661234567', 'SMS text');


alxjzx100\TurboSmsUA\httpApi;
$numbers = [
    '380661234567',
    '380671234567'
];
$smsApi = new httpApi('YOUR_API_KEY');
try {
    $smsApi
        ->setConnectionType('curl')
        ->setMode('hybrid')
        ->setStartTime( new DateTime('22.02.2022 18:00') )
        ->setTTL('48000')
        ->setAction('Some Action')
        ->setImage('https://image.url')
        ->send($numbers,'TEXT TO SEND', 'SMS SENDER NAME', 'VIBER SENDER NAME');

}catch (Exception $e){
    echo $e->getMessage();
}