Laravel 12 – 13
PHP 8.3+
The project is in a healthy, maintained state
This is my package africastalking-laravel
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

guzzlehttp/guzzle
^7.4
phpstan/extension-installer
^1.4
phpstan/phpstan-deprecation-rules
^2.0
phpstan/phpstan-phpunit
^2.0

Runtime

 Project Readme

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.