PHP code example of forward-force / televoips

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

    

forward-force / televoips example snippets


$televoips = new \ForwardForce\TeleVoIPs\TeleVoIPs('your-token');

try {
    $message = $televoips->message()
        ->setFrom('19876543210')
        ->setTo('9417264539')
        ->setMessage('Test SMS')
        ->send();
} catch (\GuzzleHttp\Exception\GuzzleException $e) {
    var_dump($e->getMessage());
}
bash
php examples/send_message.php