PHPackages                             aharen/mpg - 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/mpg

Abandoned → [aharen/pay](/?search=aharen%2Fpay)ArchivedPackage[Payment Processing](/categories/payments)

aharen/mpg
==========

Maldives Payment Gateway (MPG) by Bank of Maldives

v1.0.4(9y ago)3541MITPHP

Since Oct 27Pushed 5y ago1 watchersCompare

[ Source](https://github.com/aharen/MPG)[ Packagist](https://packagist.org/packages/aharen/mpg)[ RSS](/packages/aharen-mpg/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (6)Used By (0)

DEPRICATED:
===========

[](#depricated)

This package is no longer updated, please consider using

---

MPG
===

[](#mpg)

Maldives Payment Gateway (MPG) by Bank of Maldives

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

[](#installation)

```
composer require aharen/mpg

```

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

```
require: {
	"aharen/mpg": "1.0.*"
}

```

Usage
-----

[](#usage)

```
$pay = new MPG();

$url         = [Gateway URL from BML];
$MerID       = [Merchant ID];
$AcqID       = [Acquirer ID];
$MerPassword = [Merchant Account Password];

$pay->initialize($url, $MerID, $AcqID, $MerPassword);

/*
* setup transanction
* $amount = amount to debit eg: 100.01
* $transactionId = your transaction id eg: TRN/001
*/
$pay->setTransaction($amount, $transactionId);

```

You can use one of the following methods to get the fields.

Get form values, which will give you an array of all the form values.

```
$form_values = $pay->getFormValues();

```

Or, Get Form, which will give you an HTML form.

```
$form = $pay->getForm();

```

You may use the following method to format the response from the gateway.

```
Pay::response($_REQUEST);

```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity67

Established project with proven stability

 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

Every ~30 days

Total

5

Last Release

3415d ago

PHP version history (2 changes)v1.0PHP ^5.1.0

v1.0.2PHP &gt;=5.5.9

### 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 (8 commits)")

---

Tags

paymentgatewayBankmaldivesMPG

### Embed Badge

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

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

###  Alternatives

[aharen/pay

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

271.5k](/packages/aharen-pay)[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)
