PHPackages                             payabbhi/payabbhi-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. [API Development](/categories/api)
4. /
5. payabbhi/payabbhi-php

ActiveLibrary[API Development](/categories/api)

payabbhi/payabbhi-php
=====================

Payabbhi PHP package provides client library for Payabbhi API's

v1.0.6(6y ago)26577[1 issues](https://github.com/payabbhi/payabbhi-php/issues)[6 PRs](https://github.com/payabbhi/payabbhi-php/pulls)1MITPHPPHP &gt;=5.3.0CI failing

Since Sep 14Pushed 6y ago2 watchersCompare

[ Source](https://github.com/payabbhi/payabbhi-php)[ Packagist](https://packagist.org/packages/payabbhi/payabbhi-php)[ Docs](https://payabbhi.com/)[ RSS](/packages/payabbhi-payabbhi-php/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (5)Dependencies (2)Versions (8)Used By (1)

Payabbhi PHP library
====================

[](#payabbhi-php-library)

[![license](https://camo.githubusercontent.com/f66302afe9382a853cbb32934d166650fa94b84d5b3e4b97855531e5501c83ff/68747470733a2f2f706f7365722e707567782e6f72672f70617961626268692f70617961626268692d7068702f6c6963656e7365)](https://packagist.org/packages/payabbhi/payabbhi-php)[![Packagist](https://camo.githubusercontent.com/e1584c7d292cdf45c2f43853aa982d96a1eeffc92f915cec2931fc8262876397/68747470733a2f2f706f7365722e707567782e6f72672f70617961626268692f70617961626268692d7068702f646f776e6c6f616473)](https://packagist.org/packages/payabbhi/payabbhi-php)[![Packagist](https://camo.githubusercontent.com/c07bcaa6725f6d8269ac13260566b70fc0a578ddc6359b8505c71f0585963d83/68747470733a2f2f706f7365722e707567782e6f72672f70617961626268692f70617961626268692d7068702f762f737461626c652e737667)](https://packagist.org/packages/payabbhi/payabbhi-php)

Make sure you have signed up for your [Payabbhi Account](https://payabbhi.com/docs/account) and downloaded the [API keys](https://payabbhi.com/docs/developers/api-keys) from the [Portal](https://payabbhi.com/portal).

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

[](#requirements)

PHP 5.3.3 and later.

Composer
--------

[](#composer)

The library can be installed via [Composer](http://getcomposer.org/). Run the following command:

```
$ composer require payabbhi/payabbhi-php
```

Start using the library as per Composer [autoloading](https://getcomposer.org/doc/01-basic-usage.md#autoloading): simply include `vendor/autoload.php`, available as part of library installation via Composer.

```
require_once('vendor/autoload.php');
```

Manual Installation
-------------------

[](#manual-installation)

In case Composer is not used, download the latest release from [Releases](https://github.com/payabbhi/payabbhi-php/releases). For using the manually downloaded library, simply include `init.php` in your code.

```
require_once('/path/to/payabbhi-php/init.php');
```

For manual installation, make sure that the [dependencies](#dependencies) are resolved.

Documentation
-------------

[](#documentation)

Please refer to:

- [PHP Lib Docs](https://payabbhi.com/docs/api/?php)
- [Integration Guide](https://payabbhi.com/docs/payments/integration)

Dependencies
------------

[](#dependencies)

The library requires the following extensions:

- [`curl`](https://secure.php.net/manual/en/book.curl.php)
- [`json`](https://secure.php.net/manual/en/book.json.php)

In case of manual installation, make sure that the dependencies are resolved.

Getting Started
---------------

[](#getting-started)

### Authentication

[](#authentication)

```
// Set your credentials
$client = new \Payabbhi\Client('access_id', 'secret_key');

// Optionally set your app info.
// app_version and app_url are optional

$client->setAppInfo('app_name','app_version','app_url');
```

### Orders

[](#orders)

```
// Create order
$order = $client->order->create(array('merchant_order_id' => $merchantOrderID,
                                      'amount' => $amount,
                                      'currency' => $currency));

// Retrieve a particular order object
$order = $client->order->retrieve($orderId);

// Retrieve a set of order objects based on given filter params
$orders = $client->order->all(array('count' => 2));

// Retrieve a set of payments for a given order
$payments = $client->order->retrieve($orderId)->payments();
```

### Payments

[](#payments)

```
// Retrieve all payments
$payments = $client->payment->all();

// Retrieve a particular payment
$payment = $client->payment->retrieve($id);

// Capture a payment
$payment->capture();

// Fully Refund a payment
$refund = $payment->refund();

// Retrieve a set of refund objects for a given payment with optional filter params
$refunds = $payment->refunds();
```

### Refunds

[](#refunds)

```
// Create a refund
$fullRefund = $client->refund->create($paymentID);

// Create a partial refund
$partialRefund = $client->refund->create($paymentID, array('amount'=>$refundAmount));

// Retrieve a set of orders with the given filter params
$refunds = $client->refund->all(array('count' => 2));

// Retrieve a particular refund object
$refund = $client->refund->retrieve($refundId);
```

### Verifying payment signature

[](#verifying-payment-signature)

```
$attributes = array(
                    'payment_id'        => $payment_id,
                    'order_id'          => $order_id,
                    'payment_signature' => $payment_signature
                   );
$client->utility->verifyPaymentSignature($attributes);
```

### Verifying webhook signature

[](#verifying-webhook-signature)

```
$client->utility->verifyWebhookSignature($payload,$actualSignature,$secret);

// replayInterval is optional
$client->utility->verifyWebhookSignature($payload,$actualSignature,$secret,$replayInterval);
```

### Customers

[](#customers)

Refer to [PHP Lib Docs](https://payabbhi.com/docs/api/?php#customers)

### Invoices

[](#invoices)

Refer to [PHP Lib Docs](https://payabbhi.com/docs/api/?php):

- [Invoices](https://payabbhi.com/docs/api/?php#invoices)
- [Invoice Items](https://payabbhi.com/docs/api/?php#invoice-items)

### Subscriptions

[](#subscriptions)

Refer to [PHP Lib Docs](https://payabbhi.com/docs/api/?php):

- [Products](https://payabbhi.com/docs/api/?php#products)
- [Plans](https://payabbhi.com/docs/api/?php#plans)
- [Subscriptions](https://payabbhi.com/docs/api/?php#subscriptions)

### Transfers

[](#transfers)

Refer to [PHP Lib Docs](https://payabbhi.com/docs/api/?php#transfers)

### Events

[](#events)

Refer to [PHP Lib Docs](https://payabbhi.com/docs/api/?php#events)

Development
-----------

[](#development)

Install dependencies:

```
$ composer install
```

Tests
-----

[](#tests)

Install dependencies as mentioned above (which will resolve [PHPUnit](http://packagist.org/packages/phpunit/phpunit)), set ACCESS\_ID and SECRET\_KEY as environment variable then you can run the test suite:

```
$ export ACCESS_ID=""
$ export SECRET_KEY=""
$ ./vendor/bin/phpunit
```

Or to run an individual test file:

```
$ export ACCESS_ID=""
$ export SECRET_KEY=""
$ ./vendor/bin/phpunit tests/PaymentTest.php
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 52.9% 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 ~134 days

Recently: every ~95 days

Total

7

Last Release

2400d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/80d63326507f1cd91bf20f05ac7386e651ef86228db0ce7803cb75ad67c5a348?d=identicon)[ppmadmin](/maintainers/ppmadmin)

---

Top Contributors

[![ppmadmin](https://avatars.githubusercontent.com/u/17697734?v=4)](https://github.com/ppmadmin "ppmadmin (9 commits)")[![ppm-suman](https://avatars.githubusercontent.com/u/40167331?v=4)](https://github.com/ppm-suman "ppm-suman (5 commits)")[![ppm-surabhi](https://avatars.githubusercontent.com/u/23450578?v=4)](https://github.com/ppm-surabhi "ppm-surabhi (2 commits)")[![ppm-vinay](https://avatars.githubusercontent.com/u/23334198?v=4)](https://github.com/ppm-vinay "ppm-vinay (1 commits)")

---

Tags

apipayment processingpayabbhi

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[ebanx/ebanx

EBANX PHP library

22662.5k](/packages/ebanx-ebanx)[pay-now/paynow-php-sdk

PHP client library for accessing Paynow API

19207.3k3](/packages/pay-now-paynow-php-sdk)[everypay/everypay-php

1743.0k](/packages/everypay-everypay-php)

PHPackages © 2026

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