PHPackages                             nandwabee/africastalking - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. nandwabee/africastalking

ActiveLibrary[API Development](/categories/api)

nandwabee/africastalking
========================

A composer package for the Africa's talking mobile API's

0.2.0(9y ago)17471[1 issues](https://github.com/nandwabee/africastalking/issues)MITPHP

Since Apr 4Pushed 9y ago1 watchersCompare

[ Source](https://github.com/nandwabee/africastalking)[ Packagist](https://packagist.org/packages/nandwabee/africastalking)[ RSS](/packages/nandwabee-africastalking/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (3)Versions (6)Used By (0)

Africas Talking API
===================

[](#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
------------

[](#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.

- [Guzzle](http://guzzle.readthedocs.org/en/5.3/overview.html)
- PHP 5.5.0 or newer. PHP 7 is currently not tested.

Be sure to checkout Guzzle's own dependencies.

Documentation
-------------

[](#documentation)

Install using composer.

`composer require nandwabee/africastalking`

### Sending Messages

[](#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 ;

```
//Instantiate the object.

$obj = new AfricasTalking('my_username','my_key');

$response = $obj->send($to,$message,$options);

//Do something with the array
```

**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](http://docs.africastalking.com/sms/sending/url#documentation)

**Todo**

Exception handling

### Fetching User Details

[](#fetching-user-details)

Contribution
------------

[](#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

- Send SMS
- Support phone calls
- Receive SMS messages
- Support to Premium rate SMS services
- Create a sample Laravel 5 package
- Update the documentation with sample code
- Support for USSD
- Write tests
- Support for airtime transactions
- Fetch User data
- Improve exception handling.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~26 days

Total

5

Last Release

3632d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ab84a10505eff36b6517970b67134246b0ca1d0f7cc3c032f268a1a2e9ddd8e0?d=identicon)[nandwabee](/maintainers/nandwabee)

---

Top Contributors

[![r115](https://avatars.githubusercontent.com/u/2851039?v=4)](https://github.com/r115 "r115 (16 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nandwabee-africastalking/health.svg)

```
[![Health](https://phpackages.com/badges/nandwabee-africastalking/health.svg)](https://phpackages.com/packages/nandwabee-africastalking)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1942.4k4](/packages/aimeos-prisma)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1232.2k16](/packages/fleetbase-core-api)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
