PHPackages                             dadapas/mvola-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. [Payment Processing](/categories/payments)
4. /
5. dadapas/mvola-php

ActiveLibrary[Payment Processing](/categories/payments)

dadapas/mvola-php
=================

A simple class wrapper for MVola mobile money for Madagascar.

1.3.1(3y ago)103524MITPHPPHP &gt;=7.1

Since May 11Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Dadapas/mvola-php)[ Packagist](https://packagist.org/packages/dadapas/mvola-php)[ RSS](/packages/dadapas-mvola-php/feed)WikiDiscussions main Synced 1mo ago

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

MVOLA PHP
---------

[](#mvola-php)

[![mvola api](https://camo.githubusercontent.com/7bffd7d45a0e17aef8bd1fadd9c1c73a38dc5a910cee33b071ac798370d98d24/68747470733a2f2f692e6962622e636f2f4d674b485152372f6d61696c2e706e67)](https://camo.githubusercontent.com/7bffd7d45a0e17aef8bd1fadd9c1c73a38dc5a910cee33b071ac798370d98d24/68747470733a2f2f692e6962622e636f2f4d674b485152372f6d61696c2e706e67)[![Latest Stable Version](https://camo.githubusercontent.com/cbd5da8eacda93453dfc4316eced64e01576bda3136e9de89bb183cba1beea96/687474703a2f2f706f7365722e707567782e6f72672f646164617061732f6d766f6c612d7068702f76)](https://packagist.org/packages/dadapas/mvola-php) [![Total Downloads](https://camo.githubusercontent.com/6e928929d96157459c4c30ef72cc098e4e28a29fcfe5562774f2b10e1792f528/687474703a2f2f706f7365722e707567782e6f72672f646164617061732f6d766f6c612d7068702f646f776e6c6f616473)](https://packagist.org/packages/dadapas/mvola-php) [![Latest Unstable Version](https://camo.githubusercontent.com/f92a748f03f36f6661156202ae1154bb688263915ad4cdcd853b060cb4771dee/687474703a2f2f706f7365722e707567782e6f72672f646164617061732f6d766f6c612d7068702f762f756e737461626c65)](https://packagist.org/packages/dadapas/mvola-php) [![License](https://camo.githubusercontent.com/869485c07e73888b5ea7524f3b0551abc440dc977f61784ef2d7a8cd127d8d14/687474703a2f2f706f7365722e707567782e6f72672f646164617061732f6d766f6c612d7068702f6c6963656e7365)](https://packagist.org/packages/dadapas/mvola-php) [![PHP Version Require](https://camo.githubusercontent.com/746901c9ed6115ae2543c9fc6479c4c38d1e2370815b9d51359ee46c6458b520/687474703a2f2f706f7365722e707567782e6f72672f646164617061732f6d766f6c612d7068702f726571756972652f706870)](https://packagist.org/packages/dadapas/mvola-php)

PHP class wrap up Madagascar mobile money request as mvola.

This package facilitate these features for you:

- Handle authentification token and expires token
- Generate automaticly correlation ID and reference for payement
- Request handler

Getting started
---------------

[](#getting-started)

The suggested installation method is via [composer](https://getcomposer.org/):

```
composer require dadapas/mvola-php
```

To get started

```
require_once __DIR__ . "/vendor/autoload.php";
use MVolaphp\Telma as MVola;

$credentials = array(
	// Customer id
	'client_id'		=> '',
	// Customer secret
	'client_secret'		=> '',
	// The merchant number
	'merchant_number'	=> '0343500003',
	// Set true to production
	'production'	  	=> false,
	// company_name
	'partner_name'		=> "company_name",
	// Set the lang
	'lang'				=> 'MG'
);

// Path to cache that is enable to read and write
$cache = __DIR__.'/cache';

try {

	$mvola = new MVola($credentials, $cache);

	// ...
} catch (MVolaphp\Exception $e) {

	echo $e->getMessage().PHP_EOL;

	var_dump($e->getData());
}
```

Sending money to merchent like

```
use MVolaphp\Money;
use MVolaphp\Objects\{Phone, PayIn, KeyValue};
...

$payDetails = new PayIn();

// Amount of 1000 ar or arivo ariary
$money = new Money('MGA', 5000);

$payDetails->amount = $money;

// User to retreive the amount
$debit = new KeyValue();
$debit->addPairObject(new Phone("0343500004"));
$payDetails->debitParty = $debit;

// Credited party not obligatoire if has been set in options

// $merchant = new KeyValue();
// $merchant->addPairObject(new Phone("0343500004"));
// $payDetails->creditParty = $merchant;

// Set description text
$payDetails->descriptionText = "Test payement";

$meta = new KeyValue();
$meta->add('partnerName', "Company name");
// $meta->add('fc', 'USD');
// $meta->add('amountFc', 1);

// Add metadata information
$payDetails->metadata = $meta;

// Put callback url
$mvola->setCallbackUrl("https://example.com/mycallback");

// Make a payement
$response = $mvola->payIn($payDetails);

print_r($response);
```

For testing only msisdn `034 35 000 03` and `034 35 000 04` work Use real number for production

Support
-------

[](#support)

This repository is support to all php project, **Symfony**, **Laravel**, **Codeigniter**, **Wordpress**, ..., and so on

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

[](#documentation)

To read the documentation is in

- [Getting Started](docs/getting-started.md)
- [Merchant](docs/merchent.md)

Contributing
------------

[](#contributing)

Please read the [CONTRIBUTING.md](CONTRIBUTING.md) contents if you wish to help out!

LICENCE
-------

[](#licence)

MIT Licence

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 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 ~47 days

Recently: every ~64 days

Total

7

Last Release

1181d ago

PHP version history (2 changes)1.1.1PHP &gt;=7.1 || &gt;=8.0

1.2.0PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/456979997044b4a0b274d30db252afec25d17cfe5fcdda66d75460562e4fa0f6?d=identicon)[Dadapas](/maintainers/Dadapas)

---

Top Contributors

[![Dadapas](https://avatars.githubusercontent.com/u/9548602?v=4)](https://github.com/Dadapas "Dadapas (102 commits)")

---

Tags

composermobile-moneymvolamvola-sdkpaymentphplibraryphp-sdkmobile-moneymvolamadagascar

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[mabiola/paystack-php-lib

A PHP Library for https://paystack.co

262.0k](/packages/mabiola-paystack-php-lib)

PHPackages © 2026

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