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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sms-speeda-mobile-php

Send SMS using speed mobile api

Latest Version on Packagist Tests Total Downloads

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

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

License

The MIT License (MIT). Please see License File for more information.


All versions of sms-speeda-mobile-php with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-json Version *
guzzlehttp/guzzle Version ^7.9 || ^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kimulisiraj/sms-speeda-mobile-php contains the following files

Loading the files please wait ...