Yoola SMS PHP SDK
=================
Needs PHP 7.2+ with the curl extension. One file, no Composer.

1. Copy YoolaSMS.php into your project.
2. Use it:

   require 'YoolaSMS.php';
   $yoola = new YoolaSMS('YOUR_API_KEY');          // key from your dashboard > API Key

   $r = $yoola->send('256772123456', 'Your code is 482913');
   if (($r['status'] ?? '') === 'success') { echo 'Sent, balance: ' . $r['balance']; }
   else { echo $r['message']; }

   $yoola->send(['256772123456', '256712345678'], 'Hello everyone', 'YOURSENDER');
   $yoola->send('256772123456', 'Test', 'YoolaSMS', true);   // sandbox: checks only, nothing sent or charged
   $yoola->balance();
   $yoola->deliveryReport(12345);
   $yoola->schedule('256772123456', 'Reminder', '2026-12-01 09:00:00');
   $yoola->verifySend('256772123456', ['brand_name' => 'MyApp']);
   $yoola->verifyCheck($requestId, '12345');

Errors such as "insufficient_fund" come back as normal JSON: check $r['status'] and $r['code'].
A network problem throws YoolaSMSException.

Keep your API key private. Do not put it in public code or in a browser.
Help: support@yoolasms.com | WhatsApp +256 704 487 563 | https://yoolasms.com/api-integration
