Download the PHP package rapidsmsng/sms-php-sdk without Composer
On this page you can find all versions of the php package rapidsmsng/sms-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rapidsmsng/sms-php-sdk
More information about rapidsmsng/sms-php-sdk
Files in rapidsmsng/sms-php-sdk
Package sms-php-sdk
Short Description Rapid SMS PHP SDK is built for Rapid SMS - Bulk SMS Application
License MIT
Informations about the package sms-php-sdk
Rapid SMS Nigeria PHP SDK
Rapid SMS PHP SDK is built for Rapid SMS - Bulk SMS Application
Prerequisites
To use Rapid SMS SDK you must have created an account with Rapid SMS. For more details please visit: Rapid SMS
Installing
Via Composer
And Via Bash
Usage
Step 1:
If installing Rapid SMS SDK using Git Clone then load your Rapid SMS SDK Class files with the use of namespaces.
If installing Rapid SMS API using Composer then require/include autoload.php file in the index.php of your project or whatever file you need to use Rapid SMS SDK classes:.
Step 2:
Get your API_KEY from https://rapidsmsng.com/sms-api/info
(from within your account)
Step 3:
Change to your Sender ID. Submit Sender ID for approval from here https://rapidsmsng.com/user/sms/sender-id-management
Step 4:
the number we are sending to - Any phone number
For multiple number please use Comma (,) after every single number.
You can insert maximum 100 numbers using comma separated string in single api request.
Step 5:
Replace your URL with https://rapidsmsng.com/sms/api
.
sms/api
is mandatory.
// SMS Body
// Unicode SMS
// Schedule SMS
// Create Plain/text SMS Body for request
// Create Unicode SMS Body for request
// Create SMS Body for Schedule request
Step 6:
Instantiate a new Rapid SMS API request
Send SMS
Finally send your sms through Rapid SMS API
Get Inbox
Get all your messages
Get Balance
Get your account balance
Response
Rapid SMS API return response in json
format, like:
Delivery Reports
Pushing delivery reports to an endpoint you specify is coming soon
Status Code
Status | Message |
---|---|
ok |
Successfully queued |
100 |
Bad gateway requested |
101 |
Wrong action |
102 |
Authentication failed |
103 |
Invalid phone number |
104 |
Phone coverage not active |
105 |
Insufficient balance |
106 |
Invalid sender id |
107 |
Invalid SMS type |
108 |
SMS gateway not active |
109 |
Invalid schedule time |
110 |
SMS contain spam word. Pending approval |
Authors
- Kenneth Onah - Initial work - rapidsmsng
All versions of sms-php-sdk with dependencies
ext-curl Version *
ext-json Version *