HEX
Server: nginx/1.27.1
System: Linux in-4 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User: ilikadirect (1186)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v6964/avoxlive/public_html/application/libraries/nexmo/sms/send-signed-sms.php
<?php
require_once __DIR__ . '/../config.php';
require_once __DIR__ . '/../vendor/autoload.php';

$signed = new Nexmo\Client\Credentials\SignatureSecret(
    NEXMO_API_KEY,
    NEXMO_API_SIGNATURE_SECRET,
    'md5hash'
);
$client = new \Nexmo\Client($signed);

$message = $client->message()->send([
    'to' => TO_NUMBER,
    'from' => FROM_NUMBER,
    'text' => 'Super interesting message',
]);

$response = $message->getResponseData();
echo "Message status: " . $response['messages'][0]['status'] . "\n";