PHPackages                             drh/laravel-tanda - 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. [Payment Processing](/categories/payments)
4. /
5. drh/laravel-tanda

ActiveLibrary[Payment Processing](/categories/payments)

drh/laravel-tanda
=================

Tanda API Library

v1.5.3(2y ago)0579MITPHPPHP ^8.0

Since Jan 10Pushed 2y ago1 watchersCompare

[ Source](https://github.com/DrH97/laravel-tanda)[ Packagist](https://packagist.org/packages/drh/laravel-tanda)[ RSS](/packages/drh-laravel-tanda/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (27)Used By (0)

Tanda Api
=========

[](#tanda-api)

[![GitHub TestCI Workflow](https://github.com/DrH97/laravel-tanda/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/DrH97/laravel-tanda/actions/workflows/test.yml)[![Github StyleCI Workflow](https://github.com/DrH97/laravel-tanda/actions/workflows/styleci.yml/badge.svg?branch=master)](https://github.com/DrH97/laravel-tanda/actions/workflows/styleci.yml)[![codecov](https://camo.githubusercontent.com/8f6cd004b27cfe4a0ea728789f67a7f58d4f85adc322f585756e44ccc27e9677/68747470733a2f2f636f6465636f762e696f2f67682f44724839372f6c61726176656c2d74616e64612f6272616e63682f6d61737465722f67726170682f62616467652e7376673f746f6b656e3d36623064306261312d633263362d343037372d386333612d316635363765656138386130)](https://codecov.io/gh/DrH97/laravel-tanda)

[![Latest Stable Version](https://camo.githubusercontent.com/c5cbb4ef743b25da6aeec56ddc02d898089853efa03ea3519943bdfb5226802a/687474703a2f2f706f7365722e707567782e6f72672f6472682f6c61726176656c2d74616e64612f76)](https://packagist.org/packages/drh/laravel-tanda)[![Total Downloads](https://camo.githubusercontent.com/3920be34665c0f2c510c5f8affb9468064d5bbdc7af8daa05d0e1b91ad0faeb6/687474703a2f2f706f7365722e707567782e6f72672f6472682f6c61726176656c2d74616e64612f646f776e6c6f616473)](https://packagist.org/packages/drh/laravel-tanda)[![License](https://camo.githubusercontent.com/23665e66960b3f4ddf695bc4725fd42aa2dfd0c67e390b0ddcf229237c797c7c/687474703a2f2f706f7365722e707567782e6f72672f6472682f6c61726176656c2d74616e64612f6c6963656e7365)](https://packagist.org/packages/drh/laravel-tanda)[![PHP Version Require](https://camo.githubusercontent.com/041ca4725baebb38601afa87c5dec3d494a205bdfaa20a19113f82b5c18ab936/687474703a2f2f706f7365722e707567782e6f72672f6472682f6c61726176656c2d74616e64612f726571756972652f706870)](https://packagist.org/packages/drh/laravel-tanda)

This is a *Laravel* package that interfaces with [Tanda](https://www.tanda.africa/) Payments Api. The API enables you to initiate mobile payments, disburse payments to mobile and bank, purchase airtime &amp; bundles\* and to pay for utility bills.

Check out their [api documentation](https://www.tanda.africa/api).

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

[](#documentation)

### Installation

[](#installation)

You can install the package via composer:

```
composer require drh/laravel-tanda
```

The package will automatically register itself.

You can publish the config file with:

```
php artisan tanda:install
```

### Getting Started

[](#getting-started)

- ### Account

    [](#account)

Enables you to check the status of items

1. Account balance

```
Account::balance();
```

- ### Utility

    [](#utility)

Enables purchase of payment of goods and services

1. Airtime Purchase

```
Utility::airtimePurchase(0712345678, 100);
```

2. Bill Payment

```
Utility::billPayment(11011011011, 1000, Providers::KPLC_PREPAID);
```

3. Transaction status

```
Utility::requestStatus("...");
```

- ### Payments

    [](#payments)

Coming soon

### NOTE: Phone Number Validation

[](#note-phone-number-validation)

The phone validator was built using regex and the latest allocation of prefixes by Communication authority of Kenya (Apr, 2021). Check the [docs](docs) to see the pdf listing with allocations.

Testing
-------

[](#testing)

You can run the tests with:

```
composer test
```

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

[](#contributing)

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

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [Nabcellent](https://github.com/Nabcellent)
- [Dr H](https://github.com/drh97)

License
-------

[](#license)

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

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 66.2% 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 ~31 days

Recently: every ~116 days

Total

24

Last Release

865d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c2e18beb4ba5e22e1336e73e5c17fd4f3e193d978ffd21b33d925b4549c972d2?d=identicon)[Dr H](/maintainers/Dr%20H)

---

Top Contributors

[![DrH97](https://avatars.githubusercontent.com/u/22273907?v=4)](https://github.com/DrH97 "DrH97 (88 commits)")[![Nabcellent](https://avatars.githubusercontent.com/u/68481507?v=4)](https://github.com/Nabcellent "Nabcellent (45 commits)")

---

Tags

billinglaravelpaymentsphptandautilitieslibrarypaymentsBankmobile-moneyTandaUtility PaymentsPayment Collections

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/drh-laravel-tanda/health.svg)

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

###  Alternatives

[unicodeveloper/laravel-paystack

A Laravel Package for Paystack

650975.6k11](/packages/unicodeveloper-laravel-paystack)[chargebee/chargebee-php

ChargeBee API client implementation for PHP

768.0M9](/packages/chargebee-chargebee-php)[shetabit/multipay

PHP Payment Gateway Integration Package

291348.2k3](/packages/shetabit-multipay)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)[omalizadeh/laravel-multi-payment

A driver-based laravel package for online payments via multiple gateways

491.1k](/packages/omalizadeh-laravel-multi-payment)[itsmurumba/laravel-mpesa

Laravel Package for Mpesa Daraja API

191.6k](/packages/itsmurumba-laravel-mpesa)

PHPackages © 2026

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