salymmbise / mambosms
A PHP library for sending SMS
v1.1.0
2025-08-08 06:57 UTC
Requires
- php: >=7.4
README
A lightweight PHP library for sending SMS via Bearer Token authenticated API.
📦 Installation
composer require salymmbise/mambosms
🚀 Usage
✅ Option 1: Pass them when you instantiate the class (RECOMMENDED)
This is simple and flexible. You initialize the MamboSMS client like this:
use SalymMbise\MamboSMS\MamboSMS; $sms = new MamboSMS('https://api.example.com', 'your_bearer_token'); // Then use it normally $sms->sendSingleSMS('MYSENDERID', 'Hello!', '0713123456');
📤 Features
🔹 Send Single SMS
$response = $sms->sendSingleSMS('MYSENDERID', 'Hello world', '0713123456');
🔹 Send Bulk SMS
$response = $sms->sendBulkSMS('MYSENDERID', '07123456789,0712345678');
🔹 Check SMS Balance
$response = $sms->checkBalance();