PHPackages                             samuelmwangiw/africastalking-laravel - 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. samuelmwangiw/africastalking-laravel

ActiveLibrary[API Development](/categories/api)

samuelmwangiw/africastalking-laravel
====================================

This is my package africastalking-laravel

v2.4.1(2mo ago)720.3k↑41%2[2 issues](https://github.com/SamuelMwangiW/africastalking-laravel/issues)MITPHPPHP ^8.3CI passing

Since Mar 10Pushed 1w ago2 watchersCompare

[ Source](https://github.com/SamuelMwangiW/africastalking-laravel)[ Packagist](https://packagist.org/packages/samuelmwangiw/africastalking-laravel)[ Docs](https://github.com/samuelmwangiw/africastalking-laravel)[ GitHub Sponsors](https://github.com/SamuelMwangiW)[ RSS](/packages/samuelmwangiw-africastalking-laravel/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (10)Dependencies (36)Versions (72)Used By (0)

africastalking-laravel
======================

[](#africastalking-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/44a928e806fb4a2dbd984a41e330b95f6c9796a23370d4d020cdabd6229ae1fa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73616d75656c6d77616e6769772f6166726963617374616c6b696e672d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/samuelmwangiw/africastalking-laravel)[![run-tests](https://github.com/SamuelMwangiW/africastalking-laravel/actions/workflows/run-tests.yml/badge.svg)](https://github.com/SamuelMwangiW/africastalking-laravel/actions/workflows/run-tests.yml)[![PHPStan](https://github.com/SamuelMwangiW/africastalking-laravel/actions/workflows/phpstan.yml/badge.svg)](https://github.com/SamuelMwangiW/africastalking-laravel/actions/workflows/phpstan.yml)[![Code styling](https://github.com/SamuelMwangiW/africastalking-laravel/actions/workflows/php-cs-fixer.yml/badge.svg)](https://github.com/SamuelMwangiW/africastalking-laravel/actions/workflows/php-cs-fixer.yml)[![Total Downloads](https://camo.githubusercontent.com/31177794f14dc48c0cdb2531a3c32d9b0d0d8b8e1f15e85ed97268e25c7050fb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73616d75656c6d77616e6769772f6166726963617374616c6b696e672d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/samuelmwangiw/africastalking-laravel)

This is an unofficial Laravel SDK for interacting with [Africa's Talking](https://developers.africastalking.com/docs/sms/overview) APIs that takes advantage of native Laravel components such as

- [HTTP Client](https://laravel.com/docs/9.x/http-client#main-content) in place of Guzzle client
- [Service Container](https://laravel.com/docs/9.x/container#main-content) for a great dev experience
- [Notifications](https://laravel.com/docs/9.x/notifications) to allow you route notifications via Africastalking
- [Config](https://laravel.com/docs/9.x/configuration#main-content)
- [Collections](https://laravel.com/docs/9.x/collections#main-content)
- Among many others

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require samuelmwangiw/africastalking-laravel
```

You can publish the config file with:

```
php artisan vendor:publish --tag="africastalking-config"
```

This is the contents of the published config file:

```
return [
    'username' => env('AFRICASTALKING_USERNAME', 'sandbox'),
    'api-key' => env('AFRICASTALKING_API_KEY'),
    'sms' => [
        'from' => env('AFRICASTALKING_FROM'),
    ],
    'payment' => [
        'product-name' => env('AFRICASTALKING_PAYMENT_PRODUCT'),
    ],
    'voice' => [
        'from' => env('AFRICASTALKING_VOICE_PHONE_NUMBER'),
    ]
];
```

You should configure the package by setting the `env` variables in your `.env` file.

Documentations
--------------

[](#documentations)

The full documentation can be found at [Main Documentation](https://at-laravel-docs.pages.dev/) site.

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Samuel Mwangi](https://github.com/SamuelMwangiW)
- [Njogu Amos](https://github.com/njoguamos)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance87

Actively maintained with recent releases

Popularity34

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 73.8% 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

Recently: every ~19 days

Total

60

Last Release

23d ago

Major Versions

v0.4.6 → v1.0.02023-06-19

v1.10.0 → v2.0.02025-10-14

v2.4.1 → v3.0.0-alpha12026-06-01

PHP version history (5 changes)v0.0.1PHP ^8.0

v0.1.1PHP ^8.1

v1.6.0PHP ^8.2

v1.10.0PHP ^8.3

v3.0.0-alpha1PHP ^8.4

### Community

Maintainers

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

---

Top Contributors

[![SamuelMwangiW](https://avatars.githubusercontent.com/u/1807304?v=4)](https://github.com/SamuelMwangiW "SamuelMwangiW (389 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (74 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (53 commits)")[![njoguamos](https://avatars.githubusercontent.com/u/29255728?v=4)](https://github.com/njoguamos "njoguamos (11 commits)")

---

Tags

laravelSamuelMwangiWafricastalking-laravel

###  Code Quality

TestsPest

Static AnalysisPHPStan

### Embed Badge

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

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

###  Alternatives

[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k11.2M100](/packages/dedoc-scramble)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.8k3](/packages/defstudio-telegraph)[codebar-ag/laravel-docuware

DocuWare integration with Laravel

1123.7k](/packages/codebar-ag-laravel-docuware)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)

PHPackages © 2026

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