PHP code example of fomvasss / epochta-sms

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

    

fomvasss / epochta-sms example snippets


php artisan vendor:publish

Epochta::sendSms($sender, $text, $phone) //return ID SMS

$res = $sms->sendSMS('SenderName', 'your sms text :)', '+380969416666', null, 0);
$res['result']['id']; // ID SMS