1. Go to this page and download the library: Download room/letexto-sms-package 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/ */
room / letexto-sms-package example snippets
use Room\Sms\SmsClient;
$client = new SmsClient([
'token' => 'votre_token_api',
'base_url' => 'https://apis.letexto.com/v1'
]);
$response = $client->send([
'to' => '2250100000000',
'content' => 'Votre code de vérification est: 123456',
'from' => 'MonApp'
]);