PHPackages                             moipayway/mpw-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. [API Development](/categories/api)
4. /
5. moipayway/mpw-php

ActiveLibrary[API Development](/categories/api)

moipayway/mpw-php
=================

The library simplifies interaction with Moipayway APIs in your PHP applications. It streamlines the process of integration, eliminating the need to deal with intricate details, and facilitates rapid API calls.

v0.1.0(2y ago)04MITPHP

Since Feb 25Pushed 2y ago1 watchersCompare

[ Source](https://github.com/chibuzoraustine/mpw-php)[ Packagist](https://packagist.org/packages/moipayway/mpw-php)[ RSS](/packages/moipayway-mpw-php/feed)WikiDiscussions master Synced yesterday

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

MoiPayWay PHP Library
=====================

[](#moipayway-php-library)

 [![](https://camo.githubusercontent.com/0dc40156a1fc637eb92c27ca20996fd64b36966d15cac7c6f767c9ce70cad8c7/68747470733a2f2f6d6f697061797761792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323032332f30342f6d6f697061797761792e706e67 "MoiPayWay")](https://camo.githubusercontent.com/0dc40156a1fc637eb92c27ca20996fd64b36966d15cac7c6f767c9ce70cad8c7/68747470733a2f2f6d6f697061797761792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323032332f30342f6d6f697061797761792e706e67)

Introduction
------------

[](#introduction)

The MoiPayWay PHP Library simplifies interaction with Moipayway APIs in your PHP applications. It streamlines the process of integration, eliminating the need to deal with intricate details, and facilitates rapid API calls. Key features include:

- Wallets: creating and managing wallets (fiat, crypto).
- Making transfers, single/bulk. Fiat (NGN, GBP, EUR, USD) &amp; Crypto.
- Manage virtual accounts.
- Tokens: create and manage token, such as; NFT, fungible token, stable coins, storage token, etc.
- Verification: running identity checks, credit checks, etc.
- AI: verify document image (drivers license NIN, BVN, etc), Face Comparison.
- Lookups: Document validity check, CAC, etc.

Table of Content
----------------

[](#table-of-content)

- Requirements
- Installation
- Initialization
- Authenticate
- Sending requests with payload
- Error handling
- More usage documentation
- Testing
- License

Requirements
------------

[](#requirements)

1. PHP 7.4 or higher.

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

[](#installation)

```
composer require moipayway/mpw-php
```

Initialization
--------------

[](#initialization)

```
use MPW\MoiPayWay;

$mpw = new MoiPayWay("secret_token");

try {
    var_dump($mpw->misc->countries());
} catch (Exception $e) {
    echo $e->getMessage();
}
```

Authenticate
------------

[](#authenticate)

Refer to the documentation linked below to understand how to generate secret tokens for authenticating the Moipayway SDK.

[Authentication](documentation/Authentication.md)

Sending requests with payload
-----------------------------

[](#sending-requests-with-payload)

Some endpoint requires additional data to be included in the request payload. Below is an example demonstrating sending requests with payload:

```
use MPW\MoiPayWay;

$mpw = new MoiPayWay("secret_token");

try {
    $response = $mpw->wallet->createFiat([
        'code' => '***',
        'meta' => [
            'name' => '***',
            'user_id' => '***'
        ]
    ]);
    var_dump($response);
} catch (Exception $e) {
    echo $e->getMessage();
}
```

Error handling
--------------

[](#error-handling)

You can catch request errors by wrapping the method in a try / catch block.

```
use MPW\MoiPayWay;

$mpw = new MoiPayWay("invalid_api_secret_key");

try {
    $response = $mpw->token->multi->mint($payload);
    var_dump($response);
} catch (Exception $e) {
    echo $e->getMessage();
}
```

Response :

```
Error minting multi token
```

More usage documentation
------------------------

[](#more-usage-documentation)

- [Authentication](documentation/Authentication.md)
- [User](documentation/User.md)
- [Wallet](documentation/Wallet.md)
- [Token](documentation/Token.md)
- [Verification](documentation/Authentication.md)
- [Misc](documentation/Authentication.md)

Testing
-------

[](#testing)

```
./vendor/bin/phpunit
```

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

16

—

LowBetter than 4% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

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

858d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/121716152?v=4)[Anurigwo Chibuzor](/maintainers/chibuzoraustine)[@chibuzoraustine](https://github.com/chibuzoraustine)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/moipayway-mpw-php/health.svg)

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

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M985](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

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