PHPackages                             rishabjasrotia/phonepe-drupal-sdk - 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. rishabjasrotia/phonepe-drupal-sdk

ActiveLibrary[Payment Processing](/categories/payments)

rishabjasrotia/phonepe-drupal-sdk
=================================

PhonePe Drupal Payment Gateway SDK for PHP

10PHP

Since Dec 26Pushed 6mo agoCompare

[ Source](https://github.com/rishabjasrotia/phonepe-drupal-sdk)[ Packagist](https://packagist.org/packages/rishabjasrotia/phonepe-drupal-sdk)[ RSS](/packages/rishabjasrotia-phonepe-drupal-sdk/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

PhonePe SDK for PHP
===================

[](#phonepe-sdk-for-php)

A PHP SDK for integrating with PhonePe Payment Gateway.

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

[](#installation)

This library is used as a dependency by the Drupal Commerce PhonePe Payment module.

For standalone usage, install via Composer:

```
composer require rishabjasrotia/phonepe-drupal-sdk
```

Usage
-----

[](#usage)

```
use PhonePe\SDK\payments\v1\PhonePePaymentClient;
use PhonePe\SDK\Env;
use PhonePe\SDK\payments\v1\models\request\builders\PgPayRequestBuilder;
use PhonePe\SDK\payments\v1\models\request\builders\InstrumentBuilder;

$phonePeClient = new PhonePePaymentClient(
    $merchantId,
    $saltKey,
    $saltIndex,
    Env::PRODUCTION
);

$request = PgPayRequestBuilder::builder()
    ->mobileNumber($mobileNumber)
    ->callbackUrl($callbackUrl)
    ->merchantId($merchantId)
    ->merchantUserId($merchantUserId)
    ->amount($amountInPaisa)
    ->merchantTransactionId($merchantTransactionId)
    ->redirectUrl($redirectUrl)
    ->redirectMode("REDIRECT")
    ->paymentInstrument(InstrumentBuilder::buildPayPageInstrument())
    ->build();

$response = $phonePeClient->pay($request);
```

Requirements
------------

[](#requirements)

- PHP &gt;= 7.4
- Guzzle HTTP Client ^6.0|^7.0

License
-------

[](#license)

MIT

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance47

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity13

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://avatars.githubusercontent.com/u/33950743?v=4)[Rishab](/maintainers/rishabjasrotia)[@rishabjasrotia](https://github.com/rishabjasrotia)

---

Top Contributors

[![rishabjasrotia](https://avatars.githubusercontent.com/u/33950743?v=4)](https://github.com/rishabjasrotia "rishabjasrotia (1 commits)")

### Embed Badge

![Health badge](/badges/rishabjasrotia-phonepe-drupal-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/rishabjasrotia-phonepe-drupal-sdk/health.svg)](https://phpackages.com/packages/rishabjasrotia-phonepe-drupal-sdk)
```

###  Alternatives

[msilabs/bkash

bKash Payment Gateway API for Laravel Framework.

181.2k](/packages/msilabs-bkash)

PHPackages © 2026

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