PHPackages                             soofa/soofa - 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. soofa/soofa

ActiveLibrary[Payment Processing](/categories/payments)

soofa/soofa
===========

SoofaPay PHP package

04PHP

Since Nov 10Pushed 6y agoCompare

[ Source](https://github.com/soofapay/soofa-php-package)[ Packagist](https://packagist.org/packages/soofa/soofa)[ RSS](/packages/soofa-soofa/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

soofa-php-package
=================

[](#soofa-php-package)

This package is aimed at simplifying the process of integrating soofapay payment solution in your Nodejs application. You can check our [website](https://www.soofapay.com) for more information.

#### Installation

[](#installation)

```
 $ composer require soofa
```

#### Usage

[](#usage)

##### 1. Checking for a transaction

[](#1-checking-for-a-transaction)

```
use soofa\Soofa\Soofa;

// Initialize
$soofa = new Soofa("you_soofa_till_number", "your_client_secret_here");

//Find transaction
$transaction = $soofa->find("your_transaction_id");

//Get transaction details
$transactionDetails = $soofa->getTransaction();
```

The expected response for transaction details check is a JSON object as shown below.

```
{
    "status": "SUCCESSFUL",
    "sender_currency": "KES",
    "receiver_currency": "KES",
    "tid": "QTMB3",
    "reference": "T5004",
    "receipt_no": "NFQ6U45W28",
    "timestamp": 1561499777.715254,
    "gross_amount": 5,
    "net_amount": 4.8605,
    "transacted_via": "mpesa",
    "is_money_in": true,
    "sender": "+25470123456",
    "receiver": "Dev Market"
}
```

The table below describes all the attributes of the transaction object.

KeyDescriptionstatusThe state of the transaction, either `SUCCESSFUL` or `PENDING`sender\_currencyThe currency of the person who performed the transactionreceiver\_currencyThe currency of the business, if the transaction was Money in for the businessreferenceThe transaction reference passed when making a transactiontimestampUnix timestamp for the transactiongross\_amountThe amount of the transactionnet\_amountThe amount received after deducting soofatransacted\_viaThe service provider which facilitated the transaction eg. mpesa, visa, airtelmoney, mastercard, tkash ...is\_money\_inA boolean indicating if the money was to the business or out of the businesssenderThe performer of transactionreceiverThe receiver of the transaction which is the business if the transaction was inbound##### 2. Checking your soofa business account balance

[](#2-checking-your-soofa-business-account-balance)

```
 $balance = $soofa->getBalance();
```

The expected response for checking balance is a JSON with three fields:

```
{
    "balance": "1587.49",
    "currency": "KES",
    "timestamp": 1561820831.623298
}
```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9d89d195f478597d7927ac8dc0b3da0d1cb75170c20d9ee9583bb0271518f3f2?d=identicon)[SoofaPay](/maintainers/SoofaPay)

---

Top Contributors

[![LKikwei](https://avatars.githubusercontent.com/u/206715217?v=4)](https://github.com/LKikwei "LKikwei (5 commits)")

### Embed Badge

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

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

###  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)
