Download the PHP package nandwabee/africastalking without Composer

On this page you can find all versions of the php package nandwabee/africastalking. 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 africastalking

Africas Talking API

This is another look at the AfricasTalking API for PHP.

I wrote it to meet a personal project need and it should suffice for many other use cases.

Requirements

The main difference between this code and the official wrapper is that I opted to go for guzzle instead of hard dependency on Curl.

Be sure to checkout Guzzle's own dependencies.

Documentation

Install using composer.

composer require nandwabee/africastalking

Sending Messages

An sms can be sent out by calling the send() method.

The send method returns an array when a message is sent successfully.

Example code below ;

Parameters

$to : array This is an array of the numbers to send the messages to.

$message : string The message to be sent.

$options : array An array of optional parameters.

The options parameter allows the following parameters;

from,bulkSMSMode,enqueue,keyword,linkId,retryDurationInHours

The expected values for either of those parameters can be found on the AfricasTalking API Docs

Todo

Exception handling

Fetching User Details

Contribution

This is an open source project so all ideas to help make this a better tool for other developers are highly welcome.

Try as much as possible to stick to the PSR-4 standards.

Waiting for the pull requests :-)

TODO


All versions of africastalking with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ~6.0
giggsey/libphonenumber-for-php Version ^7.2
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 nandwabee/africastalking contains the following files

Loading the files please wait ....