SMS Mobile API is a PHP SDK that allows developers to send SMS and WhatsApp messages via the SMS Mobile API.
Unlike traditional SMS providers, messages are sent directly from your own mobile phone, using your own number.
This means that your contacts can reply to you directly, just like a regular message, without any third-party SMS provider in between.
Turn Your Smartphone into a Powerful SMS Gateway – No Third-Party Costs, No Hidden Fees!
Tired of expensive SMS gateways? SMSMobileAPI allows you to send SMS & WhatsApp messages directly from your own mobile phone, using your existing mobile plan. If you have an unlimited SMS plan, you can send as many messages as you want at zero additional cost!
✅ No per-message fees – Messages are sent via your own mobile plan
✅ No external providers – No middlemen, just direct SMS from your phone
✅ Full API integration – Works with WooCommerce, Shopify, Zapier, Python, and more
✅ Receive SMS replies – Messages are fully bidirectional
✅ Easy to set up – Just install the mobile app and start sending
1️⃣ Download & install the SMSMobileAPI app on your phone
2️⃣ Generate your API key in the app
3️⃣ Integrate our API into your system
4️⃣ Start sending SMS & WhatsApp messages instantly!
Before using this SDK, you must first install the SMS Mobile API mobile app on your Android or iOS device. This app is required to connect your phone to the API for sending and receiving SMS messages.
- Download SMS Mobile API for Android: https://play.google.com/store/apps/details?id=com.smsmobileapiapp
- Download SMS Mobile API for iOS: https://apps.apple.com/us/app/sms-mobile-api/id6667092442
Once the app is installed and configured, you can obtain your API key from within the app to use with this PHP SDK.
Use Composer to install the SDK:
composer require smsmobileapi/smsmobileapi-php
- Send SMS: Easily send SMS messages using a simple PHP function
- Send WhatsApp Messages: Send messages via WhatsApp
- Easy Integration: Integrates with your PHP applications with minimal setup
- API Key Authentication: Secure communication through API key-based authentication
require 'vendor/autoload.php';
use SMSMobileAPI\SMSMobileAPI;
$apiKey = 'YOUR_API_KEY';
$smsAPI = new SMSMobileAPI($apiKey);
// Send an SMS
$response = $smsAPI->sendMessage(
'+123456789', // Recipient
'Hello from SMS Mobile API PHP SDK!', // Message
sendWA: true, // Send via WhatsApp
sendSMS: true // Also send as SMS
);
print_r($response);For full API documentation and more examples, visit: https://smsmobileapi.com/doc
This SDK is open-source and licensed under the MIT License.
Now you can integrate SMS and WhatsApp messaging into your PHP applications effortlessly!