1. Go to this page and download the library: Download sendimessage/sdk 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/ */
sendimessage / sdk example snippets
use SendImessage\Client;
$client = new Client(
apiKey: getenv('SENDIMESSAGE_KEY'),
apiSecret: getenv('SENDIMESSAGE_SECRET'),
);
use SendImessage\Client;
$client = new Client(apiKey: '...', apiSecret: '...');
$msg = $client->sendMessage(number: '+15551234567', content: 'Hello from SendiMessage!');
echo $msg['message_handle'], ' ', $msg['status']; // "…" "QUEUED"
$msg = $client->sendMessage(
number: '+15551234567', // E.164 phone number, or an email for iMessage
content: 'Your order has shipped 🎉',
);
$client->sendMessage(
number: '+15551234567',
content: 'Reminder: appointment at 3pm',
scheduledAt: '2026-08-10T14:30:00Z', // ISO 8601, deliver later
statusCallback: 'https://example.com/hooks/status', // POSTed the final status
);