spring-edge / php-sms-lib
SMS Library to send sms
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/spring-edge/php-sms-lib
Requires
- php: ^5.3.3 || ^7.0
This package is not auto-updated.
Last update: 2025-12-13 02:19:21 UTC
README
This repository contains PHP-lib to send sms using Spring Edge (https://www.springedge.com) APIs
Requirements
- Sign up for a free Trail Messaging account
- Create a new
apikeyfrom developers section of sms account - Setup sender name for sms account.
- A working envounment to run PHP.
Installation
Place smsapi.php in same directory.
Get API key and Sender name.
Usage
Send Text message:
include 'smsapi.php';
$apikey = "675031xxxxxxxxxxxx";
$sender = "SEDEMO";
$sendsms = new smsapi($apikey, $sender);
$sendsms->send_sms("9199xxxxxxxx", "Hello, This is a test message from spring edge");
Success Response:
{
"groupID":xxxxxx,
"MessageIDs":"xxxxxxx-xx",
"status":"AWAITED-DLR"
}
Or in case of an error:
{
"error":"Invalid Mobile Numbers"
}
Support
For any support or query please visit: https://www.springedge.com