PHPackages                             afiqiqmal/rpclient - 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. afiqiqmal/rpclient

ActiveLibrary[API Development](/categories/api)

afiqiqmal/rpclient
==================

RaudhahPay Gateway wrapper client

1.3.5(3y ago)93994MITPHPPHP ^7.1.3CI failing

Since Feb 3Pushed 3y ago1 watchersCompare

[ Source](https://github.com/afiqiqmal/Rpclient)[ Packagist](https://packagist.org/packages/afiqiqmal/rpclient)[ RSS](/packages/afiqiqmal-rpclient/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (3)Versions (18)Used By (0)

[![Packagist](https://camo.githubusercontent.com/6bc054b7742112355225729122c99e3b3de6133f1cd37dda280ca8e459606880/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6166697169716d616c2f5270636c69656e742e737667)](https://packagist.org/packages/afiqiqmal/Rpclient)[![Packagist](https://camo.githubusercontent.com/f3d216f2dadfd56f5e09310657aae44b59c24504289273a95e726b2a7033c940/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6166697169716d616c2f5270636c69656e742e737667)](https://packagist.org/packages/afiqiqmal/Rpclient)[![Donate](https://camo.githubusercontent.com/604e3db9c8751116b3f765aad0353ec7ded655bbe8aaacbc38d8c4a6b784b3ed/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d677265656e2e737667)](https://www.paypal.com/paypalme/mhi9388?locale.x=en_US)

[![alt text](https://camo.githubusercontent.com/258236e15f18f9ca66437c26b7bc28c99d02ce0ac8b522b340651fdebeb67305/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f5250436c69656e742e706e673f7468656d653d6461726b267061636b6167654e616d653d6166697169716d616c2532467270636c69656e74267061747465726e3d63616765267374796c653d7374796c655f31266465736372697074696f6e3d49742b69732b73696d706c652b777261707065722b636c6173732b7772697474656e2b696e2b7068702b746f2b656173652b7573652b6f662b526175646861685061792b5061796d656e742b47617465776179266d643d3126666f6e7453697a653d313030707826696d616765733d63617368)](https://camo.githubusercontent.com/258236e15f18f9ca66437c26b7bc28c99d02ce0ac8b522b340651fdebeb67305/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f5250436c69656e742e706e673f7468656d653d6461726b267061636b6167654e616d653d6166697169716d616c2532467270636c69656e74267061747465726e3d63616765267374796c653d7374796c655f31266465736372697074696f6e3d49742b69732b73696d706c652b777261707065722b636c6173732b7772697474656e2b696e2b7068702b746f2b656173652b7573652b6f662b526175646861685061792b5061796d656e742b47617465776179266d643d3126666f6e7453697a653d313030707826696d616765733d63617368)

Raudhah Pay Client Library using PHP Framework
==============================================

[](#raudhah-pay-client-library-using-php-framework)

It is simple wrapper class written in php to ease use of [RaudhahPay Payment Gateway](https://www.raudhahpay.com/)

Directory
---------

[](#directory)

- [Installation](#installation)
- [Usages](#usages)

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

[](#installation)

### Composer

[](#composer)

```
composer require afiqiqmal/rpclient

```

Alternatively, you can specify as a dependency in your project's existing composer.json file

```
{
   "require": {
      "afiqiqmal/rpclient": "^1.2.0"
   }
}

```

Usages
------

[](#usages)

After installing, you need to require Composer's autoloader and add your code.

Setup config

```
$config = [
    'api_key' => getenv('RAUDHAH_API_KEY'),
    'signature_key' => getenv('RAUDHAH_X_SIGNATURE')
];

```

Or use Laravel config file name it as `raudhahpay.php` and leave `make()` blank

```
return [
    'api_key' => env('RAUDHAH_API_KEY'),
    'signature_key' => env('RAUDHAH_X_SIGNATURE', null),
    'is_sandbox' => env('RAUDHAH_SANDBOX', env('APP_ENV') != 'production'),
];

```

Collection
----------

[](#collection)

### Create collection

[](#create-collection)

```
RaudhahPay::make()
    ->collection()
    ->create("Collection Name");

```

### Get collections

[](#get-collections)

```
RaudhahPay::make()
    ->collection()
    ->fetchList();

```

### Update collection name

[](#update-collection-name)

```
RaudhahPay::make()
    ->collection()
    ->updateCollectionName("CollectionID", "New Name");

```

### Get collections by code

[](#get-collections-by-code)

```
RaudhahPay::make()
    ->collection()
    ->fetchByCode("CollectionCode");

```

Bills
-----

[](#bills)

### Create Bill

[](#create-bill)

```
RaudhahPay::make()
    ->bill()
    ->makeBill("COLLECTION CODE")
    ->setCustomer("Amirul", "Amirul", "hello@gmail.com", "60123456789", "Melaka")
    ->setReference("Testing")
    ->setProduct("Product 1", 10.30, 1)
    ->create();

```

Products
--------

[](#products)

### Create product

[](#create-product)

```
RaudhahPay::make()
    ->product()
    ->create(string|array $title/$arrays, string $code, string $description, $price);

```

### Get products

[](#get-products)

```
RaudhahPay::make()
    ->product()
    ->getList();

```

Customer
--------

[](#customer)

### Create customer

[](#create-customer)

```
RaudhahPay::make()
    ->customer()
    ->create(string|array $firstName/$arrays, string $lastName = null, string $phoneNumber = null, string $email = null);

```

### Get customers

[](#get-customers)

```
RaudhahPay::make()
    ->customer()
    ->getList();

```

DirectPay
---------

[](#directpay)

### DirectPay Payee

[](#directpay-payee)

```
$response = RaudhahPay::make()
    ->directPay()
    ->payee("COLLECTION CODE")
    ->getDirectPays();

```

### DirectPay Payeer

[](#directpay-payeer)

```
$response = RaudhahPay::make()
    ->directPay()
    ->payee("COLLECTION CODE")
    ->getTransactions($direct_pay_payer_code);

```

### Check checksum from Redirect/Webhook

[](#check-checksum-from-redirectwebhook)

```
RaudhahPay::make()->isCheckSumValid($payload); //boolean

```

Source
------

[](#source)

[Raudhah Pay Docs](https://documenter.getpostman.com/view/9723080/SWE57zKG?version=latest)

Todo
----

[](#todo)

- Other Raudhah Pay features. Still under development
- Unit Test
- Alter Readme

License
-------

[](#license)

Licensed under the [MIT license](http://opensource.org/licenses/MIT)

[![](https://camo.githubusercontent.com/fae49c14c08b15cedc0f829bf690717f2edabe33f88a6c67f6f8f7225702abc6/68747470733a2f2f692e696d6775722e636f6d2f5932677172326a2e706e67)](https://www.paypal.com/paypalme/mhi9388?locale.x=en_US)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 93.2% 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 ~76 days

Recently: every ~158 days

Total

15

Last Release

1224d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1285084ec2d00e6c1442d03992cd156772da7267efdcbe59ac913c0676a9eb89?d=identicon)[afiqiqmal](/maintainers/afiqiqmal)

---

Top Contributors

[![afiqiqmal](https://avatars.githubusercontent.com/u/9051312?v=4)](https://github.com/afiqiqmal "afiqiqmal (41 commits)")[![faridyusof727](https://avatars.githubusercontent.com/u/6507110?v=4)](https://github.com/faridyusof727 "faridyusof727 (3 commits)")

---

Tags

apiapi-clientcomposercreditcreditcarddebitfpxhacktoberfestmalaysiapaymentpayment-gatewayphpraudhahraudhahpaywrapperpaymentpayment gatewayBankingMalaysiaOnline bankingRaudahPayRaudhahBMF

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[stymiee/authnetjson

Library that abstracts Authorize.Net's JSON APIs. This includes the Advanced Integration Method (AIM), Automated Recurring Billing (ARB), Customer Information Manager (CIM), Transaction Reporting, Simple Integration Method (SIM), and Webhooks.

19545.7k](/packages/stymiee-authnetjson)

PHPackages © 2026

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