PHPackages                             syednasharudin/malakatpay-client - 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. syednasharudin/malakatpay-client

ActiveLibrary[Payment Processing](/categories/payments)

syednasharudin/malakatpay-client
================================

Malakatpay Gateway wrapper client

1.0.0(2y ago)18MITPHPPHP ^7.1.3

Since Sep 19Pushed 2y ago1 watchersCompare

[ Source](https://github.com/syednasharudin/MalakatPayClient)[ Packagist](https://packagist.org/packages/syednasharudin/malakatpay-client)[ RSS](/packages/syednasharudin-malakatpay-client/feed)WikiDiscussions main Synced 1mo ago

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

MalakatPay Client Library using PHP Framework
=============================================

[](#malakatpay-client-library-using-php-framework)

Unofficial SDK for [MalakatPay Payment Gateway](https://www.malakatpay.com/)

Directory
---------

[](#directory)

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

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

[](#installation)

### Composer

[](#composer)

```
composer require syednasharudin/malakatpay

```

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

```
{
   "require": {
      "syednasharudin/malakatpay-client": "^1.0.0"
   }
}

```

Usages
------

[](#usages)

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

Setup config

```
$config = [
    'api_key' => getenv('MALAKATPAY_API_KEY'),
    'signature_key' => getenv('MALAKATPAY_X_SIGNATURE')
];

```

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

```
return [
    'api_key' => env('MALAKATPAY_API_KEY'),
    'signature_key' => env('MALAKATPAY_X_SIGNATURE', null),
    'is_sandbox' => env('MALAKATPAY_SANDBOX', env('APP_ENV') != 'production'),
];

```

Collection
----------

[](#collection)

### Create collection

[](#create-collection)

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

```

### Get collections

[](#get-collections)

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

```

### Update collection name

[](#update-collection-name)

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

```

### Get collections by code

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

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

```

Bills
-----

[](#bills)

### Create Bill

[](#create-bill)

```
MalakatPay::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)

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

```

### Get products

[](#get-products)

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

```

Customer
--------

[](#customer)

### Create customer

[](#create-customer)

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

```

### Get customers

[](#get-customers)

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

```

DirectPay
---------

[](#directpay)

### DirectPay Payee

[](#directpay-payee)

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

```

### DirectPay Payeer

[](#directpay-payeer)

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

```

### Check checksum from Redirect/Webhook

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

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

```

Source
------

[](#source)

[Malakat Pay Docs](https://stg-console-api.malakatpay.com/docs/2.0/collection)

Todo
----

[](#todo)

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

License
-------

[](#license)

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

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

973d ago

### Community

Maintainers

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

---

Top Contributors

[![syednasharudin](https://avatars.githubusercontent.com/u/7579110?v=4)](https://github.com/syednasharudin "syednasharudin (3 commits)")

---

Tags

paymentpayment gatewayBankingMalaysiaOnline bankingBMFMalakatpayMalakat

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/syednasharudin-malakatpay-client/health.svg)

```
[![Health](https://phpackages.com/badges/syednasharudin-malakatpay-client/health.svg)](https://phpackages.com/packages/syednasharudin-malakatpay-client)
```

###  Alternatives

[shetabit/payment

Laravel Payment Gateway Integration Package

944330.1k5](/packages/shetabit-payment)[shetabit/multipay

PHP Payment Gateway Integration Package

291348.2k3](/packages/shetabit-multipay)[cybersource/rest-client-php

Client SDK for CyberSource REST APIs

39881.3k6](/packages/cybersource-rest-client-php)[tzsk/payu

PayU India Payment Gateway Integration with Laravel

47108.8k6](/packages/tzsk-payu)[victorybiz/laravel-crypto-payment-gateway

GoUrl.io Crypto Payment Gateway for Laravel

642.5k](/packages/victorybiz-laravel-crypto-payment-gateway)

PHPackages © 2026

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