PHPackages                             hachther/laravel-mesomb - 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. hachther/laravel-mesomb

ActiveLibrary[Payment Processing](/categories/payments)

hachther/laravel-mesomb
=======================

A laravel wrapper on top of Mesomb Payment API

1.8.1(1y ago)16724[2 issues](https://github.com/hachther/laravel-mesomb/issues)MITPHPPHP ^7.2.5|^8.0|^8.1

Since Aug 12Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/hachther/laravel-mesomb)[ Packagist](https://packagist.org/packages/hachther/laravel-mesomb)[ RSS](/packages/hachther-laravel-mesomb/feed)WikiDiscussions master Synced 2d ago

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

Laravel MeSomb
==============

[](#laravel-mesomb)

Laravel Wrapper on top of MeSomb Payment API

Roadmap
-------

[](#roadmap)

API Features and their implementations

FeatureStatusDocumentationPayment☑[Check the documentation](docs/README.md#Collect)Transaction Status☑[Check the documentation](docs/README.md#TransactioncheckStatus)Application Status☑[Check the documentation](docs/README.md#ApplicationcheckStatus)Deposits☑[Check the documentation](docs/README.md#Deposit)Test☐Better Documentation☐Installation
------------

[](#installation)

Before you start, you must register your service and MeSomb and get API Access keys. Please follow [this tutorial](https://mesomb.hachther.com/en/blog/tutorials/how-to-register-your-service-on-mesomb/).

### Install Package

[](#install-package)

```
composer require hachther/laravel-mesomb
```

### Publish Configuration Files

[](#publish-configuration-files)

Setting the following parameters from MeSomb

Get the information below from MeSomb after following the above tutorial.

```
MESOMB_APP_KEY=
MESOMB_API_HOST=https://mesomb.hachther.com
MESOMB_API_VERSION=v1.1
MESOMB_ACCESS_KEY=
MESOMB_SECRET_KEY=
MESOMB_SSL_VERIFY=true
```

Publish configurations file

```
php artisan vendor:publish --tag=mesomb-configuration
```

### Migrate Mesomb Transaction Tables

[](#migrate-mesomb-transaction-tables)

```
php artisan migrate
```

Usage
-----

[](#usage)

### Quick Examples

[](#quick-examples)

#### Simple Collect

[](#simple-collect)

```
// OrderController.php
use Hachther\MeSomb\Operation\Payment\Collect;

class OrderController extends Controller {

    public function confirmOrder()
    {
        $request = new Collect('67xxxxxxx', 1000, 'MTN', 'CM');

        $payment = $request->pay();

        if($payment->success){
            // Fire some event,Pay someone, Alert user
        } else {
            // fire some event, redirect to error page
        }

        // get Transactions details $payment->transactions
    }
}
```

#### Simple Deposit

[](#simple-deposit)

```
// OrderController.php
use Hachther\MeSomb\Operation\Payment\Deposit;

class OrderController extends Controller {

    public function makeDeposit()
    {
        $request = new Deposit('67xxxxxxx', 1000, 'MTN', 'CM');

        $payment = $request->pay();

        if($payment->success){
            // Fire some event,Pay someone, Alert user
        } else {
            // fire some event, redirect to error page
        }

        // get Transactions details $payment->transactions
    }
}
```

#### Attaching Payments to Models Directly

[](#attaching-payments-to-models-directly)

```
// Order.php

use Hachther\MeSomb\Helper\HasPayments;

class Order extends Model
{
    use HasPayments;
}

// OrderController.php

class OrderController extends Controller {

    public function confirmOrder(){

        $order = Order::create(['amount' => 100]);

        $payment  = $order->payment('67xxxxxxx', $order->amount, 'MTN', 'CM')->pay();

        if($payment->success){
            // Fire some event,Pay someone, Alert user
        } else {
            // fire some event, redirect to error page
        }

        // View Order payments via $order->payments

        // Get payment transaction with $payment->transaction

        return $payment;
    }
}
```

### Handle multiple applications

[](#handle-multiple-applications)

This is how you process if you want to handle multiple MeSomb applications with the same project.

1. Set up your configuration file with the default application and other information as specified below.
2. Update the applicationKey (the accessKey and the secretKey if needed) on the fly as you can see below.

```
// OrderController.php
use Hachther\MeSomb\Operation\Payment\Collect;

class OrderController extends Controller {

    public function confirmOrder()
    {
        $request = new Collect('67xxxxxxx', 1000, 'MTN', 'CM');

        // Update applicationKey before process the payment
        // You also have setAccessKey and setSecretKey
        $payment = $request->setApplicationKey('')->pay();

        if($payment->success){
            // Fire some event,Pay someone, Alert user
        } else {
            // fire some event, redirect to error page
        }

        // get Transactions details $payment->transactions
    }
}
```

Author
------

[](#author)

Hachther LLC [contact@hachther.com](contact@hachther.com)

Thank you to Malico ([hi@malico.me](hi@malico.me)) for starting this module.

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 60.4% 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 ~84 days

Recently: every ~177 days

Total

19

Last Release

673d ago

PHP version history (3 changes)1.0PHP ^7.2.5

1.2.3PHP ^7.2.5|^8.0

1.7.1PHP ^7.2.5|^8.0|^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/38338353?v=4)[Hachther Co.](/maintainers/hachther)[@hachther](https://github.com/hachther)

---

Top Contributors

[![yondifon](https://avatars.githubusercontent.com/u/35140079?v=4)](https://github.com/yondifon "yondifon (64 commits)")[![hachther](https://avatars.githubusercontent.com/u/38338353?v=4)](https://github.com/hachther "hachther (21 commits)")[![Stephan-MC](https://avatars.githubusercontent.com/u/77833621?v=4)](https://github.com/Stephan-MC "Stephan-MC (9 commits)")[![MuluhGodson](https://avatars.githubusercontent.com/u/40151808?v=4)](https://github.com/MuluhGodson "MuluhGodson (8 commits)")[![renovate-bot](https://avatars.githubusercontent.com/u/25180681?v=4)](https://github.com/renovate-bot "renovate-bot (4 commits)")

###  Code Quality

TestsPest

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/hachther-laravel-mesomb/health.svg)

```
[![Health](https://phpackages.com/badges/hachther-laravel-mesomb/health.svg)](https://phpackages.com/packages/hachther-laravel-mesomb)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8723.3M27](/packages/yajra-laravel-oci8)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k161.4k1](/packages/mike-bronner-laravel-model-caching)[api-platform/laravel

API Platform support for Laravel

58190.1k21](/packages/api-platform-laravel)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45844.8k1](/packages/pressbooks-pressbooks)[forjedio/inertia-table

Backend-driven dynamic tables for Laravel + Inertia.js

272.0k](/packages/forjedio-inertia-table)

PHPackages © 2026

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