PHPackages                             kkiapay/kkiapay-php - 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. kkiapay/kkiapay-php

ActiveLibrary[Payment Processing](/categories/payments)

kkiapay/kkiapay-php
===================

Php sdk for kkiapay payment gateway

631.0k↑22.2%8[3 PRs](https://github.com/kkiapay/php-sdk/pulls)PHP

Since Jun 8Pushed 2y ago1 watchersCompare

[ Source](https://github.com/kkiapay/php-sdk)[ Packagist](https://packagist.org/packages/kkiapay/kkiapay-php)[ RSS](/packages/kkiapay-kkiapay-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

KKIAPAY PHP-SDK
===============

[](#kkiapay-php-sdk)

Raw Files
---------

[](#raw-files)

```
    git clone https://github.com/kkiapay/php-sdk.git
```

Installing
----------

[](#installing)

Using composer:

```
    composer require kkiapay/kkiapay-php
```

Initialization
--------------

[](#initialization)

#### Production

[](#production)

```
    $kkiapay = new \Kkiapay\Kkiapay($public_key, $private_key, $secret);
```

#### Sandbox

[](#sandbox)

```
    $kkiapay = new \Kkiapay\Kkiapay($public_key, $private_key, $secret, $sandbox = true);
```

Request to retrieve transactions
--------------------------------

[](#request-to-retrieve-transactions)

#### EXAMPLE

[](#example)

```
    $kkiapay->verifyTransaction($transaction_id);
```

Request to revert transaction
-----------------------------

[](#request-to-revert-transaction)

#### EXAMPLE

[](#example-1)

```
    $kkiapay->refundTransaction($transaction_id);
```

Request to schedule payout
--------------------------

[](#request-to-schedule-payout)

#### EXAMPLE

[](#example-2)

```

    // Example to schedule payout when amount reaches a ceiling
    $kkiapay->setupPayout(array( "algorithm" => "roof", "send_notification" => true,
        "destination_type" => "MOBILE_MONEY", "roof_amount" => "1000",
        "destination" => "22997000000" ));

        // Example to schedule payout by frequency
    $kkiapay->setupPayout(array( "algorithm" => "rate", "send_notification" => true,
        "destination_type" => "MOBILE_MONEY", "rate_frequency" => "1m",
        "destination" => "22997000000" ));
```

PARAMETERSDESCRIPTIONalgorithm(String) "roof" if the amount reaches a ceiling or "rate" for refund by frequency.send\_nofitication(Boolean) to receive a notification after payment.destination\_type(String) "BANK\_ACCOUNT" or "MOBILE\_MONEY"destination(String) the bank number or phone number of the receiver of the refundrate\_frequency(String) "1m", "1w", "3j" Refund frequency when choosing "rate" algorithmroof\_amount(String) Refund amount when choosing "roof" algorithmCOMPLETE POSSIBLE STATUS LIST
-----------------------------

[](#complete--possible-status-list)

STATUSDESCRIPTIONSUCCESSSuccessful transactionFAILEDTransaction failedINSUFFICIENT\_FUNDNot enough money in developper accountTRANSACTION\_NOT\_ELIGIBLEThis transaction are already reverted or are not eligibleTRANSACTION\_NOT\_FOUNDTransaction not foundINVALID\_TRANSACTIONYou are not owner of this transactionINVALID\_TRANSACTION\_TYPEWe can't revert this transactionINVALID\_PAYOUT\_DESTINATION\_ACCOUNTProvided destination account is not valid mobile money account

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/81af3fcbefc88637ceda75b3c0645d8a33dfec517dc7818d8580b647348e5c49?d=identicon)[shadai.ali](/maintainers/shadai.ali)

---

Top Contributors

[![issotina](https://avatars.githubusercontent.com/u/14887303?v=4)](https://github.com/issotina "issotina (17 commits)")[![KurtzL](https://avatars.githubusercontent.com/u/26407866?v=4)](https://github.com/KurtzL "KurtzL (7 commits)")[![barbeblance](https://avatars.githubusercontent.com/u/44818809?v=4)](https://github.com/barbeblance "barbeblance (6 commits)")[![boussarilatif](https://avatars.githubusercontent.com/u/38128001?v=4)](https://github.com/boussarilatif "boussarilatif (5 commits)")[![barbeblanche96](https://avatars.githubusercontent.com/u/50922402?v=4)](https://github.com/barbeblanche96 "barbeblanche96 (2 commits)")[![jennifer-am](https://avatars.githubusercontent.com/u/93129962?v=4)](https://github.com/jennifer-am "jennifer-am (2 commits)")[![nagamodle](https://avatars.githubusercontent.com/u/52760035?v=4)](https://github.com/nagamodle "nagamodle (1 commits)")[![asaje379](https://avatars.githubusercontent.com/u/50690169?v=4)](https://github.com/asaje379 "asaje379 (1 commits)")

### Embed Badge

![Health badge](/badges/kkiapay-kkiapay-php/health.svg)

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

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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