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

ActiveLibrary

freddygenicho/laravel-africastalking-notification
=================================================

Africastalking Notification Channel for laravel

1.0.4(6y ago)123MITPHPPHP ^7.1.3

Since Aug 29Pushed 6y ago1 watchersCompare

[ Source](https://github.com/freddygenicho/laravel-africastalking-notification)[ Packagist](https://packagist.org/packages/freddygenicho/laravel-africastalking-notification)[ Docs](https://github.com/freddygenicho/laravel-africastalking-notification)[ RSS](/packages/freddygenicho-laravel-africastalking-notification/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (5)Versions (6)Used By (0)

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

[](#laravel-africastalking-notification)

Laravel AfricasTalking Notification Channel

[![Build Status](https://camo.githubusercontent.com/133fdda15afc4a6a7716fe5210f33d99140c3c527a75ce76023b7946735c7a58/68747470733a2f2f7472617669732d63692e636f6d2f66726564647967656e6963686f2f6c61726176656c2d6166726963617374616c6b696e672d6e6f74696669636174696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/freddygenicho/laravel-africastalking-notification)[![GitHub stars](https://camo.githubusercontent.com/69a6cf468384e0f14ee7df4ccc436ea99d96f14194ae2b2c8e08726e63c15b14/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f66726564647967656e6963686f2f6c61726176656c2d6166726963617374616c6b696e672d6e6f74696669636174696f6e)](https://github.com/freddygenicho/laravel-africastalking-notification/stargazers)[![GitHub forks](https://camo.githubusercontent.com/86cbed56d808636200bd82395de8989d95d68666fc9e5d02b70c843203b8d41a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f66726564647967656e6963686f2f6c61726176656c2d6166726963617374616c6b696e672d6e6f74696669636174696f6e)](https://github.com/freddygenicho/laravel-africastalking-notification/network)[![GitHub license](https://camo.githubusercontent.com/f6c78892e5ba5ef7f69da2366f28692792ac6f4f5e9758abc71fa0bd2f8b296a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f66726564647967656e6963686f2f6c61726176656c2d6166726963617374616c6b696e672d6e6f74696669636174696f6e)](https://github.com/freddygenicho/laravel-africastalking-notification/blob/master/LICENSE.md)[![GitHub issues](https://camo.githubusercontent.com/428efc3cee81099d0eea73147fb7e69e4e203c7fffb8b42c0b0031695c5a7ef0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f66726564647967656e6963686f2f6c61726176656c2d6166726963617374616c6b696e672d6e6f74696669636174696f6e)](https://github.com/freddygenicho/laravel-africastalking-notification/issues)[![Twitter](https://camo.githubusercontent.com/d857df45d2f9c4432cb5834297f0b48df39983db5bb281134bb6a8e604bb93c8/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f75726c2f68747470732f6769746875622e636f6d2f66726564647967656e6963686f2f6c61726176656c2d6166726963617374616c6b696e672d6e6f74696669636174696f6e3f7374796c653d736f6369616c)](https://twitter.com/intent/tweet?text=Wow:&url=https%3A%2F%2Fgithub.com%2Ffreddygenicho%2Flaravel-africastalking-notification)

Use this package to send sms notifications via Africastaclking. Laravel 5.3+ required.

Install
-------

[](#install)

This package can be installed through Composer.

```
composer require freddygenicho/laravel-africastalking-notification
```

If installing on &lt; Laravel 5.5 then add the service provider:

```
// config/app.php
'providers' => [
    ...
    FreddyGenicho\AfricasTalking\AfricasTalkingNotificationServiceProvider::class,
    ...
];
```

First, publish configuration files

```
php artisan vendor:publish --provider="FreddyGenicho\AfricasTalking\AfricasTalkingNotificationServiceProvider"
```

This will publish the africastalking configuration file into the config directory as africastalking.php. This file contains all the configurations required to use the package.

Example Usage
-------------

[](#example-usage)

Use Artisan to create a notification:

```
php artisan make:notification SomeNotification
```

Return `[africasTalking]` in the `public function via($notifiable)` method of your notification:

```
/**
* @param $notifiable
* @return array
*/
public function via($notifiable)
{
    return ['africasTalking'];
}
```

Add the method `public function toAfricasTalking($notifiable)` to your notification, and return an instance of `AfricasTalkingMessage`:

```
use FreddyGenicho\AfricasTalking\Message\AfricasTalkingMessage;

...
/**
* Get the AfricasTalking representation of the notification.
* @param $notifiable
* @return AfricasTalkingMessage
*/
public function toAfricasTalking($notifiable)
{
   return (new AfricasTalkingMessage())
          ->content('Hello world')
          ->from('Genicho');
}
```

In order to let your Notification know which phone are you sending/calling to, the channel will look for the `phone_number` attribute of the Notifiable model. If you want to override this behaviour, add the `routeNotificationForAfricasTalking` method to your Notifiable model.

```
public function routeNotificationForAfricasTalking()
{
    return '+25412345678';
}
```

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

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

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

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 ~7 days

Total

5

Last Release

2420d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4739cc0650e42cbe4907d870e30ea098ada237c51753157afabac85b4034fab6?d=identicon)[freddygenicho](/maintainers/freddygenicho)

---

Top Contributors

[![freddygenicho](https://avatars.githubusercontent.com/u/7162238?v=4)](https://github.com/freddygenicho "freddygenicho (14 commits)")

---

Tags

africastalkinglaravellaravel-notification-channelslaravel-notificationslaravelnotificationsAfricastalking

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravel/slack-notification-channel

Slack Notification Channel for laravel.

89069.7M111](/packages/laravel-slack-notification-channel)[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[laravel-notification-channels/pusher-push-notifications

Pusher native Push Notifications driver.

282733.2k1](/packages/laravel-notification-channels-pusher-push-notifications)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[laravel-notification-channels/africastalking

This package makes it easy to send notifications via AfricasTalking with Laravel

2529.1k](/packages/laravel-notification-channels-africastalking)

PHPackages © 2026

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