PHP code example of teli / teli-php

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

    

teli / teli-php example snippets


use Teli\Teli;

$callApiSIDToken = "TELI_CALL_API_SID_TOKEN"; // Your Call API SID Token from https://control.teli.net
$apiToken = "TELI_API_TOKEN";   // Your API Token from https://control.teli.net
$teli = new Teli($callApiSIDToken, $apiToken);

$response = $teli->sms->send([
    'source' => 2674935581,
    'destination' => 7205551212,
    'message' => 'Hery'
]);
var_dump($response);