Download the PHP package codexoft/mobilesasa-sdk without Composer
On this page you can find all versions of the php package codexoft/mobilesasa-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download codexoft/mobilesasa-sdk
More information about codexoft/mobilesasa-sdk
Files in codexoft/mobilesasa-sdk
Package mobilesasa-sdk
Short Description The Mobilesasa SDK is a PHP library that provides seamless integration with the Mobilesasa API for sending SMS messages, managing contact groups, and conducting mobile surveys. This SDK supports various messaging features including single SMS, bulk SMS, personalized bulk messaging, and delivery status tracking.
License MIT
Homepage https://github.com/codexoft/mobilesasa-sdk
Informations about the package mobilesasa-sdk
Mobilesasa SDK Documentation
The Mobilesasa SDK is a PHP library that provides seamless integration with the Mobilesasa API for sending SMS messages, managing contact groups, and conducting mobile surveys. This SDK supports various messaging features including single SMS, bulk SMS, personalized bulk messaging, and delivery status tracking.
Table of Contents
- Installation
- Configuration
- Basic Usage
- Features
- Message Management
- Contact Groups
- Anniversary Groups
- Mobile Surveys
- API Reference
- Error Handling
Installation
To install the Mobilesasa SDK, use Composer:
Configuration
Initialize the SDK with your credentials:
Basic Usage
Sending a Single SMS
Sending Bulk SMS
Features
Message Management
Phone Number Details
Get information about a phone number, including the network provider:
Calculate Message Length
Analyze message length and SMS parts:
Check Delivery Status
Track the delivery status of sent messages:
Personalized Bulk SMS
Send different messages to different recipients:
Contact Groups
List Groups
Add Contact to Group
Remove Contact from Group
Anniversary Groups
List Anniversary Groups
Add Contact to Anniversary Group
Remove Contact from Anniversary Group
Mobile Surveys
Send mobile surveys to contacts:
API Reference
Phone Number Format Support
The SDK automatically handles various phone number formats:
- 9 digits (e.g., '712345678')
- 10 digits with leading zero (e.g., '0712345678')
- 12 digits with country code (e.g., '254712345678')
Response Format
Most methods return an array containing:
status: Boolean indicating successresponseCode: API response codemessage: Response message- Additional data specific to the operation
balance: Account balance (if showBalance is true in config)
Error Handling
The SDK uses the MobilesasaException class for error handling:
Common exceptions include:
- Invalid phone number format
- Missing required parameters
- API authentication errors
- Network connectivity issues
For detailed API documentation and error codes, please visit the Mobilesasa API Documentation.
All versions of mobilesasa-sdk with dependencies
ext-curl Version *
ext-json Version *
ext-mbstring Version *