PHPackages                             aharen/pay - 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. aharen/pay

ActiveLibrary[Payment Processing](/categories/payments)

aharen/pay
==========

Payment processing with Bank of Maldives/Maldives Payment Gateway (MPG), Maldives Islamic Bank (MIB) &amp; MFaisaa by Oooredoo Maldives.

v1.2.3(5y ago)271.1k10MITPHP

Since Mar 3Pushed 5y ago7 watchersCompare

[ Source](https://github.com/aharen/Pay)[ Packagist](https://packagist.org/packages/aharen/pay)[ RSS](/packages/aharen-pay/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (16)Used By (0)

Pay
===

[](#pay)

Process payments with Maldives Banking Gateways. Currently Supports Maldives Payment Gateway (MPG) by Bank of Maldives, Maldives Islamic Bank and MFaisaa by Ooredoo Maldives.

**NOTE:** If you are looking for a WooCommerce (WordPress) implementation please take a look at

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

[](#installation)

```
composer require aharen/pay

```

or update your `composer.json` as follows and run `composer update`

```
require: {
    "aharen/pay": "1.2.*"
}

```

Usage
-----

[](#usage)

Initialize with the Gateway provider that you need, options are:

- **MPG** (Maldives Payment Gateway by Bank of Maldives)
- **MIB** (Maldives Islamic Bank)
- **MFaisaa** (Ooredoo MFaisaa)

**ATTENTION:** For MIB Gateway version 1 use v1.0.\* of the package. From v1.1.\* of the package it is for MIB Gateway version 2

```
use aharen\Pay\Gateway;

// this initiates MPG
$gatway = new Gateway('MPG');

// this initiates MIB
$gatway = new Gateway('MIB');

// this initiates MFaisaa
$gatway = new Gateway('MFaisaa');

```

If an invalid provider is set an `InvalidProviderException` will be thrown.

### Config

[](#config)

[Maldives Payment Gateway by Bank of Maldives (MPG), Usage](MPG-Config.md)
[Maldives Islamic Bank (MIB), Usage](MIB-Config.md)
[Ooredoo MFaisaa (MFaisaa), Usage](MFaisaa-Config.md)

### CREDITS

[](#credits)

- MIB v2 updated by [hammaadhrasheedh](https://github.com/hammaadhrasheedh)
- MFaisaa added by [hammaadhrasheedh](https://github.com/hammaadhrasheedh)

### TODO

[](#todo)

- tests

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 81.8% 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 ~95 days

Recently: every ~42 days

Total

15

Last Release

2024d ago

Major Versions

v0.1.1 → v1.0.02017-03-03

### Community

Maintainers

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

---

Top Contributors

[![aharen](https://avatars.githubusercontent.com/u/46440?v=4)](https://github.com/aharen "aharen (36 commits)")[![hammaadhrasheedh](https://avatars.githubusercontent.com/u/28826211?v=4)](https://github.com/hammaadhrasheedh "hammaadhrasheedh (8 commits)")

---

Tags

bank-of-maldivesmaldives-islamic-bankmaldives-payment-gatewaymfaisaaooredoopaymentgatewayBankmaldivesbmlmibMPGfisafisanetmfaisaa

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/aharen-pay/health.svg)

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

###  Alternatives

[omalizadeh/laravel-multi-payment

A driver-based laravel package for online payments via multiple gateways

491.1k](/packages/omalizadeh-laravel-multi-payment)[dena-a/iran-payment

a Laravel package to handle Internet Payment Gateways for Iran Banking System

312.4k1](/packages/dena-a-iran-payment)[parsisolution/gateway

A Laravel package for connecting to all Iraninan payment gateways

231.7k](/packages/parsisolution-gateway)

PHPackages © 2026

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