SMS gateway implementation for OSPOS - drop-in replacement for the default Sms_lib.php.
- SMS Gateway Replacement - Replaces the bundled
Sms_lib.phpwith a seven-backed implementation - Custom Sender ID - Configure via the OSPOS admin
- Saved Templates - Use OSPOS's built-in
Saved Text Messagefield for predefined messages
- An OSPOS installation
- A seven account with API key (How to get your API key)
Replace the OSPOS SMS library with Sms_lib.php from this repo:
cp Sms_lib.php /path/to/ospos/application/libraries/Sms_lib.php- Log in to the OSPOS dashboard.
- Go to Configuration > Setup & Conf > Message.
- Set:
| Field | Value |
|---|---|
| SMS-API Username | Any non-empty value (unused but required) |
| SMS-API Password | Your seven API key |
| SMS-API Sender ID | Optional. Up to 11 alphanumeric or 16 numeric characters. Country-specific restrictions may apply. |
| Saved Text Message | Optional message template |
- Click Submit to save.
See configuration.png for an example screenshot.
Need help? Feel free to contact us or open an issue.