PHPackages                             alsharie/sabacash-payment - 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. alsharie/sabacash-payment

ActiveLibrary[Payment Processing](/categories/payments)

alsharie/sabacash-payment
=========================

SabaCash payment gateway

1.1(2y ago)81047MITPHPPHP &gt;=7.4

Since May 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Alsharie/sabacash-payment)[ Packagist](https://packagist.org/packages/alsharie/sabacash-payment)[ RSS](/packages/alsharie-sabacash-payment/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

SabaCash-payment
================

[](#sabacash-payment)

[![img.svg](img.svg)](img.svg)

laravel package for SabaCash payment getway install the package `composer require alsharie/sabacash-payment`

You can publish using the following command

`php artisan vendor:publish --provider="Alsharie\SabaCashPayment\SabaCashServiceProvider"`

When published, the `config/sabaCash.php` config file contains:

```
return [
    'auth' => [
        'username' => env('SABACASH_MERCHANT_USERNAME'),
        'password' => env('SABACASH_MERCHANT_PASSWORD'),
    ],
    'url' => [
        'base' => env('SABACASH_BASE_URL', 'https://api.sabacash.ye:49901'),
    ]
];
```

---

### login

[](#login)

```
    $sabaCash = new SabaCash();
    $response = $sabaCash->login();

    if ($response->isSuccess()) {
        $response->getToken();
    }
```

---

To purchase using SabaCash payment

### 1. Purchase

[](#1-purchase)

```
    $sabaCash = new SabaCash();
    $response = $sabaCash
        ->setCurrency(2)
        ->setNote('this is simple note')
        ->setAmount(3000)
        ->setBeneficiaryTerminal(1)
        ->setSourceCode(/*phone number*/)
        ->initPayment();

    if ($response->isSuccess()) {
        $response->getAdjustment();
        ...
        ...
    }

```

### 2. Confirm purchase

[](#2-confirm-purchase)

```
    $sabaCash = new SabaCash();
    $response = $sabaCash
        ->setAdjustmentId(603414)
        ->setOtp(5761)
        ->setOperationApprove()
        ->setNote('تاكيد عملية الدفع')
        ->confirmPayment();
    if ($response->isSuccess()) {
        return $response->getTransactionId();
    }
```

### 3. Check Transaction Status

[](#3-check-transaction-status)

```
    $sabaCash = new SabaCash();
    $response = $sabaCash
        ->setTransactionId(/*tranId*/)
        ->checkTransactionStatus();

    if ($response->isSuccess()) {
        return $response->getStatus();
    }
```

you can get the full **response body** using `$response->body()` for all requests

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity46

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

Every ~214 days

Total

2

Last Release

877d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ea1e02a853f19eb13769c87ef731c4988ffd8fece015761090e63717a8cdb06d?d=identicon)[alsharie](/maintainers/alsharie)

---

Top Contributors

[![Alsharie](https://avatars.githubusercontent.com/u/39643416?v=4)](https://github.com/Alsharie "Alsharie (26 commits)")

---

Tags

laravelsaba-cash-laravel-packagesabacashsabacash-package

### Embed Badge

![Health badge](/badges/alsharie-sabacash-payment/health.svg)

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

###  Alternatives

[sebdesign/laravel-viva-payments

A Laravel package for integrating the Viva Payments gateway

4845.9k](/packages/sebdesign-laravel-viva-payments)[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)[karson/mpesa-php-sdk

172.2k](/packages/karson-mpesa-php-sdk)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[henryejemuta/laravel-monnify

A laravel package to seamlessly integrate monnify api within your laravel application

132.1k](/packages/henryejemuta-laravel-monnify)

PHPackages © 2026

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