Download the PHP package swiftsmsgh/swiftsmsgh-api-sdk without Composer
On this page you can find all versions of the php package swiftsmsgh/swiftsmsgh-api-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download swiftsmsgh/swiftsmsgh-api-sdk
More information about swiftsmsgh/swiftsmsgh-api-sdk
Files in swiftsmsgh/swiftsmsgh-api-sdk
Package swiftsmsgh-api-sdk
Short Description PHP SDK for the Swiftsms-GH Bulk SMS API
License MIT
Informations about the package swiftsmsgh-api-sdk
Swiftsms-GH PHP SDK
The Swiftsms-GH PHP SDK provides a suitable approach to the Swiftsms-GH API from applications written in PHP. It includes pre-defined set of classes and functions for API resource that initialize themselves from API responses.
The library provides other features. For Example:
- Easy configuration path for fast setup and use
- Helpers for pagination.
You can sign up for an Swiftsms-GH account at swiftsmsgh.com
Prerequisites
PHP ^8.0 and later
Installation
Via Composer
Via Git Bash
Documentation
Please see https://swiftsmsgh.com/developer for up-to-date documentation
Usage
Step 1:
If you install the Swiftsms-GH PHP SDK via Git Clone then load the Swiftsms-GH PHP API class file and use namespace.
If you install Swiftsms-GH PHP SDK via Composer require the autoload.php file in the index.php of your project or whatever file you need to use Swiftsms-GH PHP API classes.
The Swiftsms-GH PHP SDK endpoints are RESTful, and consume and return JSON. All Http endpoints requires an API Key in the request header.
For more information on how to get an API Key visit here to copy or generate new key for authorization.
HTTP ENDPOINTS
- https://app.swiftsmsgh.com/api/v3/sms/send
- https://app.swiftsmsgh.com/api/v3/sms/{uid}
- https://app.swiftsmsgh.com/api/v3/sms
- https://app.swiftsmsgh.com/api/v3/me
- https://app.swiftsmsgh.com/api/v3/balance
- https://app.swiftsmsgh.com/api/v3/contacts
- https://app.swiftsmsgh.com/api/v3/contacts/{group_id}/show/
- https://app.swiftsmsgh.com/api/v3/contacts/{group_id}
- https://app.swiftsmsgh.com/api/v3/contacts/{group_id}/store
- https://app.swiftsmsgh.com/api/v3/contacts/{group_id}/search/{uid}
- https://app.swiftsmsgh.com/api/v3/contacts/{group_id}/update/{uid}
- https://app.swiftsmsgh.com/api/v3/contacts/{group_id}/delete/{uid}
- https://app.swiftsmsgh.com/api/v3/contacts/{group_id}/all
Step 2:
Instantiate the SwiftsmsghSMSSDKAPI
Send SMS
Check SMS Credit Balance
View Profile
Status Code
Status | Message |
---|---|
ok |
Successfully Send |
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 |
Media url required |
111 |
SMS contain spam word. Wait for approval |
All versions of swiftsmsgh-api-sdk with dependencies
ext-curl Version *
ext-json Version *