PHPackages                             devscast/maxicash - 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. devscast/maxicash

ActiveLibrary[API Development](/categories/api)

devscast/maxicash
=================

The MaxiCash integration platform enables merchants to integrate with the MaxiCash platform to receive payments via their mobile applications or websites. The API uses JSON to interact with .Net or open source platforms such as PHP.

1.1.0(3mo ago)309413MITPHPPHP &gt;=8.4CI passing

Since Oct 13Pushed 3mo agoCompare

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

READMEChangelog (2)Dependencies (7)Versions (5)Used By (0)

Maxicash PHP
============

[](#maxicash-php)

[![Lint](https://github.com/devscast/maxicash/actions/workflows/lint.yaml/badge.svg)](https://github.com/devscast/maxicash/actions/workflows/lint.yaml/badge.svg)[![Test](https://github.com/devscast/maxicash/actions/workflows/test.yaml/badge.svg)](https://github.com/devscast/maxicash/actions/workflows/test.yaml/badge.svg)[![Latest Stable Version](https://camo.githubusercontent.com/fec3ee4c81c0fb3faa6209e4d6307d5d77ce73be9b281b22fffb83112e28395e/68747470733a2f2f706f7365722e707567782e6f72672f64657673636173742f6d617869636173682f76657273696f6e)](https://packagist.org/packages/devscast/maxicash)[![Total Downloads](https://camo.githubusercontent.com/14d63f20bdfa0a30d0ea33ebe24182fa7892a4c7040b062af4bb3f6840f39c57/68747470733a2f2f706f7365722e707567782e6f72672f64657673636173742f6d617869636173682f646f776e6c6f616473)](https://packagist.org/packages/devscast/maxicash)[![License](https://camo.githubusercontent.com/63d9ead9dd86ab7a43cf8f242d5d1023cfcdf01509dcf6be5e1aa0377dcd1bf0/68747470733a2f2f706f7365722e707567782e6f72672f64657673636173742f6d617869636173682f6c6963656e7365)](https://packagist.org/packages/devscast/maxicash)

The MaxiCash Integration Platform enables Merchants to integrate with the MaxiCash platform in order to receive payments through their mobile apps or their websites. The API uses JSON to interact with .Net client or open source platforms like PHP. see more at [Maxicash Documentation](https://developer.maxicashapp.com/Default)

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

[](#installation)

You can use the PHP client by installing the Composer package and adding it to your application’s dependencies:

```
composer require devscast/maxicash
```

Usage
-----

[](#usage)

The MaxiCash Gateway enables the Merchant to Collect Payment into their MaxiCash account using multiple payment channels such as Credit Cards, MaxiCash, Paypal, Mobile Money and Mobile Banking.

### Authentication

[](#authentication)

- **Step 1**. Download the MaxiCash Mobile App and signup...
- **Step 2**. Contact us to upgrade your account to a Merchant Account You will receive a Merchant Form to complete in order to provide your business details and preferred Cash out Wallet or Banking Details.
- **Step 3**. Once the paperwork is completed, you will be issued with Live and Sandbox Accounts (MerchantID and MerchantPassword)

```
use Devscast\Maxicash\Client as Maxicash;
use Devscast\Maxicash\Credential;
use Devscast\Maxicash\PaymentEntry;
use Devscast\Maxicash\Environment;

$maxicash = new Maxicash(
    credential: new Credential('marchand_id', 'marchand_password'),
    environment: Environment::SANDBOX // use `Environment::LIVE` for live
);
```

### Create a Payment Entry

[](#create-a-payment-entry)

```
$entry = new PaymentEntry(
    credential: $maxicash->credential,
    amount: intval(47.50 * 100), // amount in cents
    reference: "this text will be shown on maxicash payment page",
    acceptUrl: "your_website_accept_url",
    declineUrl: "your_website_decline_url",
);
```

> **Note**: we hightly recommand your `accept` and `decline` urls to be unique for each transaction, thus users will not be able to reuse them to validate other transactions, on your side save the transaction with a unique generated token (a.k.a transaction reference) and use it as parameter to your accept and decline urls, don't use it for the `PaymentEntry->reference`; once the user is redirected to your accept url, validate the token and grant access to the paid resource (with your own business logic).

### Redirect to Maxicash Gateway

[](#redirect-to-maxicash-gateway)

Redirect your user to the maxicash gateway to continue the payment process

> **Note** : If you're using Turbo Drive in your Symfony application, disable it on payment links in your twig templates

```
$url = $maxicash->queryStringURLPayment($entry);
```

> **Note** : we highly recommand to do a `server side` redirection, this url can be modified and leak your maxicash credentials when displayed to your user in any manner (eg: a link, button or form) ! you can use the `header("Location: $url")` fonction in vanilla PHP or return a `RedirectResponse($url)` in your controller when using Symfony or Laravel frameworks`

### Donate Button for NGOs

[](#donate-button-for-ngos)

Once you sign up as an NGO Merchant

```
$donationUrl = $maxicash->donationUrl()
```

Features supported
------------------

[](#features-supported)

- QueryString URL Payment
- Donate Button for NGOs
- Form Post Payment
- Pay Entry Web

###  Health Score

48

—

FairBetter than 94% of packages

Maintenance82

Actively maintained with recent releases

Popularity25

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

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

Total

3

Last Release

92d ago

PHP version history (2 changes)1.0.0PHP &gt;=8.2

1.1.0PHP &gt;=8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/1bedcab13d646b66f5a4f9a033106249f315ca355526179126843009828086c3?d=identicon)[bernard-ng](/maintainers/bernard-ng)

---

Top Contributors

[![bernard-ng](https://avatars.githubusercontent.com/u/31113941?v=4)](https://github.com/bernard-ng "bernard-ng (7 commits)")

---

Tags

apifintechmobile-moneynganduapipayment gatewaymobile-moneymaxicash

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/devscast-maxicash/health.svg)

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

###  Alternatives

[samerior/mobile-money

Mobile payments API - Kenya

252.3k](/packages/samerior-mobile-money)[openpesa/pesa

Pesa PHP SDK

291.3k2](/packages/openpesa-pesa)[coinremitterphp/coinremitter-php

Official PHP SDK for coinremitter cryptocurrency payment gateway

142.2k](/packages/coinremitterphp-coinremitter-php)

PHPackages © 2026

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