Download the PHP package kimulisiraj/sms-speeda-mobile-php without Composer
On this page you can find all versions of the php package kimulisiraj/sms-speeda-mobile-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kimulisiraj/sms-speeda-mobile-php
More information about kimulisiraj/sms-speeda-mobile-php
Files in kimulisiraj/sms-speeda-mobile-php
Package sms-speeda-mobile-php
Short Description Send SMS using speed mobile api
License MIT
Homepage https://github.com/kimulisiraj/sms-speeda-mobile-php
Informations about the package sms-speeda-mobile-php
Send SMS using speed mobile api
A small PHP client for the Speeda Mobile SMS API. It sends single messages, queries delivery reports and reads your account balance, with the request validation and response parsing handled for you.
Requirements
- PHP 8.2 or higher
- Guzzle 7.9 or 8.x
Installation
You can install the package via composer:
Usage
Send single message
Destination numbers must be in international format for Uganda, Kenya or Tanzania (256, 254 or 255 followed by
nine digits). Messages are limited to 160 characters.
From the response you can access:
Chaining
Query Delivery Report / Message Status
From the response you can access:
Get balance
Error handling
| Exception | Thrown when |
|---|---|
Exceptions\InvalidNumberException |
The destination number is empty or not a valid 256 / 254 / 255 number |
Exceptions\InvalidMessageException |
The message is empty, longer than 160 characters, or a message id is missing |
Exceptions\SendException |
The send or status request failed, or the API returned an unusable payload |
Exceptions\SmsBroadcastException |
The balance request failed |
JsonException |
The API returned malformed JSON |
Credentials are stripped from exception messages, but they are still sent as query parameters, so avoid logging the full request URI.
Transport security
The Speeda Mobile API is only served over plain HTTP — https://apidocs.speedamobile.com does not route to the API. Your
api_id and api_password therefore travel unencrypted in the query string on every request. If the vendor enables TLS,
point the client at it without waiting for a release:
Testing
Code style and automated refactoring:
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Siraj Kimuli
- All Contributors
License
The MIT License (MIT). Please see License File for more information.