PHPackages                             gavabridge/kra - 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. gavabridge/kra

ActiveLibrary[API Development](/categories/api)

gavabridge/kra
==============

Simple Laravel SDK for KRA (GavaConnect) APIs

1.0.8(10mo ago)127↓92.9%MITPHPPHP ^8.1|^8.2|^8.3CI failing

Since Aug 21Pushed 10mo agoCompare

[ Source](https://github.com/ImSidow/GavaBridge)[ Packagist](https://packagist.org/packages/gavabridge/kra)[ RSS](/packages/gavabridge-kra/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (4)Versions (2)Used By (0)

GavaBridge
==========

[](#gavabridge)

A simple, clean, and developer-friendly Laravel SDK that bridges your Laravel app with **Kenya Revenue Authority (KRA) APIs** via [GavaConnect](https://developer.go.ke/apis).
It simplifies authentication, token caching, and request handling, letting you focus on building your product.

---

Features
--------

[](#features)

- 🔑 Automatic OAuth2 (client credentials) token management
- 📡 Easy access to common KRA endpoints:
    - PIN validation
    - TCC validation
    - Taxpayer obligations &amp; liabilities
    - Excise license check
    - NIL return filing
- 🧩 Extendable: add more endpoints in minutes
- ⚡ Built for Laravel 10+ / 11

---

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

[](#installation)

1. Require the package:

    ```
    composer require gavabridge/kra
    ```
2. Publish the config:

    ```
    php artisan vendor:publish --tag=gavabridge-config
    ```
3. Add credentials in `.env`:

    ```
    KRA_ENV=sandbox
    KRA_CONSUMER_KEY=your_consumer_key
    KRA_CONSUMER_SECRET=your_consumer_secret
    ```

---

Usage
-----

[](#usage)

You can access all endpoints via the **`GavaBridge` facade**:

```
use GavaBridge\Kra\Facades\Kra;

// PIN validation
$result = Kra::pin()->validateByPin('A000000010');

// TCC validation
$check = Kra::tcc()->validate('A000000010', 'TCC-12345678');

// Obligations
$obls = Kra::taxpayer()->obligations('A000000010');

// Liabilities
$libs = Kra::taxpayer()->liabilities('A000000010');

// Excise license
$lic = Kra::excise()->checkByNumber('EXC-0001234');

// NIL return (payload from portal spec)
$resp = Kra::returns()->fileNil([
     "TAXPAYERDETAILS" => [
        "TaxpayerPIN" => "A000000000L",
        "ObligationCode" => "4",
        "Month" => "04",
        "Year" => "2000"
     ]
    /* ... other fields per API spec ... */
]);
```

---

Roadmap
-------

[](#roadmap)

- Add Import Certificate Checker
- Add Excise License by PIN
- Add E-Slip Checker
- Add eTIMS (OSCU/VSCU) support

---

License
-------

[](#license)

MIT © 2025 – ASAD ALI SIDOW

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance54

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

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

Unknown

Total

1

Last Release

317d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/73076630?v=4)[Asad Ali Sidow](/maintainers/ImSidow)[@ImSidow](https://github.com/ImSidow)

---

Top Contributors

[![ImSidow](https://avatars.githubusercontent.com/u/73076630?v=4)](https://github.com/ImSidow "ImSidow (34 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/gavabridge-kra/health.svg)

```
[![Health](https://phpackages.com/badges/gavabridge-kra/health.svg)](https://phpackages.com/packages/gavabridge-kra)
```

###  Alternatives

[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.8k3](/packages/defstudio-telegraph)[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.

5022.0k](/packages/simplestats-io-laravel-client)[rapidez/core

Rapidez Core

1823.5k72](/packages/rapidez-core)

PHPackages © 2026

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