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

ActiveLibrary[Payment Processing](/categories/payments)

nextmux/pay-sdk
===============

A PHP SDK for handling payments, payins, and payouts

v1.2.32(1y ago)050MITPHPPHP &gt;=7.4

Since Oct 9Pushed 1y ago1 watchersCompare

[ Source](https://github.com/nextmux/nextmux-pay-sdk)[ Packagist](https://packagist.org/packages/nextmux/pay-sdk)[ Docs](https://github.com/nextmux/nextmux-pay-sdk)[ RSS](/packages/nextmux-pay-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (20)Used By (0)

```
composer require nextmux/pay-sdk:dev-main --prefer-source
```

```
use Nextmux\PaySDK\ApiClient;
use Nextmux\PaySDK\NextmuxPay;
use Nextmux\PaySDK\PayIn;

$nmpay = NextmuxPay::init(['publicKey' => 'PUBLIC_KEY', 'secretKey' => 'SECRET_KEY']);
$token = $nmpay->getToken();
```

```
// Traitement ok
{
    "token_type":"Bearer",
    "expires_in":300,
    "access_token":"eyJ0eXAiOiJKV1QiLC.....62D6bMrXURW4udsk"
}
```

```
// traitement avec erreur
null
```

```
// Vous pouvez utiliser votre token pour des appel curl. Avec la class Http par exemple

 $response = Http::withHeaders([
    'Authorization' => 'Bearer ' . $token['access_token'],
    'Content-Type' => 'application/json',
    'User-Agent' => 'LE_USER_AGENT' //request()->header('User-Agent'),
    'X-Forwarded-For' =>'L_ADRESSE_IP' // request()->ip()
])->post($nmpay->apiUrl . '/v1/payins', $payload);

if ($response->successful()) {}
```

Autre cas
=========

[](#autre-cas)

```
// Configurer les clés API et l'URL de l'API une seule fois avec Config si vous souhaitez
$config = Config::getInstance();
$config->setKeys('PUBLIC_KEY', 'SECRET_KEY');
$config->setApiUrl('https://api.nextmux.com');

// Utilisation de la classe Pay
$pay = new Pay();
$response = $pay->with_mobile_money(
    'mtn', // operator_code
    [
        'fullname' => 'John Doe',
        'email' => 'john@example.com',
        'phone_number' => '237699999999',
        'amount' => 1000,
        'description' => 'Payment for services'
    ],
    [], // custom_params (optional)
    false // get_link (optional)
);

```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance47

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community7

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

Recently: every ~0 days

Total

19

Last Release

389d ago

### Community

Maintainers

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

---

Top Contributors

[![nextmux](https://avatars.githubusercontent.com/u/132049025?v=4)](https://github.com/nextmux "nextmux (20 commits)")

---

Tags

paymentpayoutPayinnextmux

### Embed Badge

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

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

###  Alternatives

[payum/payum

One million downloads of Payum already! Payum offers everything you need to work with payments. Friendly for all PHP frameworks (Symfony, Laravel, Laminas, Yii, Silex). Check more visiting site.

1.9k6.6M21](/packages/payum-payum)[payum/core

One million downloads of Payum already! Payum offers everything you need to work with payments. Friendly for all PHP frameworks (Symfony, Laravel, Laminas, Yii, Silex). Check more visiting site.

484.8M173](/packages/payum-core)[021/laravel-wallet

Reliable and flexible wallet system for Laravel

2785.2k](/packages/021-laravel-wallet)[paymentsuite/stripe-bundle

Stripe PaymentSuite Component

105.0k](/packages/paymentsuite-stripe-bundle)

PHPackages © 2026

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