1. Go to this page and download the library: Download pasquale-cs/zipsms-php-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/ */
pasquale-cs / zipsms-php-sdk example snippets
use ZipSms\ZipSmsClient;
$zip = ZipSmsClient::create($_ENV['ZIPSMS_API_KEY']); // base URL di default: https://zipsms-gateway.pcs.website
$res = $zip->sms()->send(
to: '+393331234567',
message: 'Ciao da ZipSMS!',
deviceName: 'ufficio-1', // oppure deviceId: 'tuo-device-id' (esattamente uno)
reference: 'ordine-123', // opzionale
// idempotencyKey: null → UUIDv4 automatico
);
echo $res['id'] . ' ' . $res['status']; // es. QUEUED