PHPackages                             evans-wanguba/kcb-bank-buni-api - 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. evans-wanguba/kcb-bank-buni-api

ActiveLibrary[API Development](/categories/api)

evans-wanguba/kcb-bank-buni-api
===============================

This is a PHP package for handling KCB Bank Buni web service integration

v1.0.0(1y ago)4235[1 PRs](https://github.com/Evans-Wanguba/kcb-bank-buni-api/pulls)MITPHPPHP &gt;=8.0

Since Aug 8Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Evans-Wanguba/kcb-bank-buni-api)[ Packagist](https://packagist.org/packages/evans-wanguba/kcb-bank-buni-api)[ RSS](/packages/evans-wanguba-kcb-bank-buni-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

KCB Bank Buni API
=================

[](#kcb-bank-buni-api)

This is a PHP package for KCB Bank Buni web service integration. Buni is designed for the modern innovator. Developers can now leverage on the KCB API to offer their customers a seamless digital experience on their platforms. Buni helps you integrate a unified payment system onto your website or app, allowing customers to easily pay for your product or service. For more information, check out [KCB Buni API](https://sandbox.buni.kcbgroup.com/devportal/apis) Guide.

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

[](#installation)

Pull in the package through Composer.

```
composer require evans-wanguba/kcb-bank-buni-api
```

Create the following variables in your .env file.

```
BUNI_ACCESS_TOKEN=AccessToken
BUNI_ENV=sandbox
```

Supported API Services
----------------------

[](#supported-api-services)

- BancAssuranceFileService
- FundsTransferAPIService
- MpesaExpressAPIService
- MpesaTransactionInfo
- QueryCoreTransactionStatus
- ValidateExternalBill
- VendingGatewayApis

Usage
-----

[](#usage)

To make a fund transfer request is simple. Just initiate the `BuniApi` and post the transaction:

```
use EvansWanguba\KcbBank\BuniApi;

require "vendor/autoload.php";

// FundsTransferAPIService
$buni = new BuniApi();
$fundsTransferParams = [
    "beneficiaryDetails"    => "JOHN DOE",
    "companyCode"           => "KE0010001",
    "creditAccountNumber"   => "1279287799",
    "currency"              => "KES",
    "debitAccountNumber"    => "1279258233",
    "debitAmount"           => 26.0,
    "paymentDetails"        => "UT Fund withdrawal",
    "transactionReference"  => "FT1234567890",
    "transactionType"       => "IF",
    "beneficiaryBankCode"   => "01"
];
$buni->postFundsTransferAPIService($fundsTransferParams);
```

Support
-------

[](#support)

See `sample.php` for more examples. Or email me at `ewanguba@gmail.com`

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity44

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

642d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ebaac904473110b7bd9dd555bacafaa806c31df6e101b5286d3e00b30b167cbf?d=identicon)[Evans-Wanguba](/maintainers/Evans-Wanguba)

---

Top Contributors

[![Evans-Wanguba](https://avatars.githubusercontent.com/u/14167768?v=4)](https://github.com/Evans-Wanguba "Evans-Wanguba (14 commits)")

---

Tags

laravel bunibuni apikcb bank api

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/evans-wanguba-kcb-bank-buni-api/health.svg)

```
[![Health](https://phpackages.com/badges/evans-wanguba-kcb-bank-buni-api/health.svg)](https://phpackages.com/packages/evans-wanguba-kcb-bank-buni-api)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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