samuelmwangiw/africastalking-laravel

This is my package africastalking-laravel
25,699 7
Install
composer require samuelmwangiw/africastalking-laravel
Latest Version:v2.4.1
PHP:^8.3
Laravel:12 · 13
Older releases:9 · 10 · 11
License:MIT
Last Updated:Sep 8, 2026
Links: GitHub  ·  Packagist
Maintainer: SamuelMwangiW

africastalking-laravel

Latest Version on Packagist run-tests PHPStan Code styling Total Downloads

This is an unofficial Laravel SDK for interacting with Africa's Talking APIs that takes advantage of native Laravel components such as

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

The full documentation can be found at Main Documentation site.

Testing

composer test

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.

Related Packages

samuelmwangiw/africastalking-laravel-tests

Testing helpers for samuelmwangiw/africastalking-laravel: fake the Africa's Talk...

1,398 0
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

644,549,754 9,698
laravel/framework

The Laravel Framework.

593,882,149 34,959
laravel/tinker

Powerful REPL for the Laravel framework.

507,193,856 7,441
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

423,477,751 607

Version History

Version Released PHP Laravel License
v2.4.1 ^8.3 ^12.39||^13.0 MIT
v2.4.0 ^8.3 ^12.39||^13.0 MIT
v2.3.0 ^8.3 ^12.39||^13.0 MIT
v2.2.0 ^8.3 ^12.0 MIT
v2.1.0 ^8.3 ^12.0 MIT
Pre-releases (4)
Version Released PHP Laravel License
v3.0.0-alpha4 ^8.4 ^13.0 MIT
v3.0.0-alpha3 ^8.4 ^13.0 MIT
v3.0.0-alpha2 ^8.4 ^13.0 MIT
v3.0.0-alpha1 ^8.4 ^13.0 MIT