PHPackages                             ibnealamkhan/sabpaisa-direct-intent - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. ibnealamkhan/sabpaisa-direct-intent

ActiveProject[HTTP &amp; Networking](/categories/http)

ibnealamkhan/sabpaisa-direct-intent
===================================

SabPaisa Direct Intent Payment Integration using Guzzle in PHP.

2.0.5(8mo ago)06MITPHPPHP &gt;=7.2

Since Aug 21Pushed 8mo agoCompare

[ Source](https://github.com/Ibnealamkhan/sabpaisa-direct-intent)[ Packagist](https://packagist.org/packages/ibnealamkhan/sabpaisa-direct-intent)[ Docs](https://github.com/ibnealamkhan/sabpaisa-direct-intent)[ RSS](/packages/ibnealamkhan-sabpaisa-direct-intent/feed)WikiDiscussions main Synced 1mo ago

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

sabpaisa-direct-intent
======================

[](#sabpaisa-direct-intent)

Prerequisites
-------------

[](#prerequisites)

- **SabPaisa Intent** must be enabled in your payment gateway account.
- You must have a valid SabPaisa merchant account and credentials.

Configuration
-------------

[](#configuration)

- All configuration settings (client code, username, password, keys, etc.) should be set in the `config.php` file.

Usage
-----

[](#usage)

1. Ensure `config.php` is properly configured with your SabPaisa credentials.
2. Include the package files in your project.
3. Use the provided classes and methods to initiate payments via SabPaisa Intent.

Example
-------

[](#example)

```
include_once 'config.php';
include_once 'Sabpaisa.php';

$sabpaisa = new Sabpaisa();

$result = $sabpaisa->processCompletePayment($token, $clientCode,$txnid);

// ...initialize payment as shown in index.php...

Goto src/sabpaisa.php
    'origin' => 'Your whitlisted sabpaisa URL',
    'referer' => 'Your whitlisted sabpaisa URL'
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance60

Regular maintenance activity

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 94.1% 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 ~1 days

Total

7

Last Release

255d ago

Major Versions

v1.0.0 → 2.0.02025-08-21

### Community

Maintainers

![](https://www.gravatar.com/avatar/4add433835238826d7e033c0bf49341df36a7b4dee66f854e2a098d7b1b400a7?d=identicon)[Ibnealamkhan](/maintainers/Ibnealamkhan)

---

Top Contributors

[![Ibnealamkhan](https://avatars.githubusercontent.com/u/52732277?v=4)](https://github.com/Ibnealamkhan "Ibnealamkhan (16 commits)")[![fardin-developer](https://avatars.githubusercontent.com/u/105560328?v=4)](https://github.com/fardin-developer "fardin-developer (1 commits)")

---

Tags

phpGuzzlepaymentupiintentsabpaisa

### Embed Badge

![Health badge](/badges/ibnealamkhan-sabpaisa-direct-intent/health.svg)

```
[![Health](https://phpackages.com/badges/ibnealamkhan-sabpaisa-direct-intent/health.svg)](https://phpackages.com/packages/ibnealamkhan-sabpaisa-direct-intent)
```

###  Alternatives

[kevinrob/guzzle-cache-middleware

A HTTP/1.1 Cache for Guzzle 6. It's a simple Middleware to be added in the HandlerStack. (RFC 7234)

43117.4M104](/packages/kevinrob-guzzle-cache-middleware)[hyperf/guzzle

Swoole coroutine handler for guzzle

102.7M292](/packages/hyperf-guzzle)

PHPackages © 2026

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