PHP code example of sempico / api-sms-php

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

    

sempico / api-sms-php example snippets


use Sempico\Api\Sms;

// Send sms
$result = Sms::send([
  'token'     => 'gbBX8dB7kDvBeo0H-VN2CX0bAXXbyJ',   // Token created in Web app, is                    // ID of sender from which SMS will be send, is                      // How many seconds will this SMS live
  'beginDate' => '2022-10-01',                       // Date when SMS should be send
  'beginTime' => '15:15:15',                         // Time when SMS should be send in selected beginDate
  'delivery'  => 'TRUE'                              // Allow / disallow get DLR back
]); 

// Refactore SMS credentials
$result = Sms::refactore([
  'token'     => 'gbBX8dB7kDvBeo0H-VN2CX0bAXXbyJ',   // Token created in Web app, is                    // ID of sender from which SMS will be send, is 
bash
composer