PHPackages                             omakei/tembo - 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. omakei/tembo

ActiveLibrary[API Development](/categories/api)

omakei/tembo
============

A package to simplify integration between Laravel web apps with Tembo.

v1.0.0(1y ago)00[4 PRs](https://github.com/omakei/Tembo/pulls)MITPHPPHP ^8.4CI passing

Since May 27Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/omakei/Tembo)[ Packagist](https://packagist.org/packages/omakei/tembo)[ Docs](https://github.com/omakei/tembo)[ GitHub Sponsors](https://github.com/Omakei)[ RSS](/packages/omakei-tembo/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (12)Versions (7)Used By (0)

 [![Tembo Logo](/art/logo-tembo.png "Tembo Logo")](/art/logo-tembo.png)

Laravel Tembo
=============

[](#laravel-tembo)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2ca0f490eb35828ce588ebf1883036cfebe4daaf8f0be1105361b90e6830749e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f6d616b65692f74656d626f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/omakei/tembo)[![GitHub Tests Action Status](https://camo.githubusercontent.com/3b039ef25380bf4d128114b389b90cf451f55f5f51439aa8fdae8fb3610f7950/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6f6d616b65692f74656d626f2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/omakei/tembo/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/5688bb18b75b547a38114cb030bcc8b055a8beedcb3ef4b63530a26be5f65af1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6f6d616b65692f74656d626f2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/omakei/tembo/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/1815c5914c1f5625c8d46e419d6b70f1e3ab409784a2aa310f0d60096f9628a1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f6d616b65692f74656d626f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/omakei/tembo)

A package to simplify integration between Laravel web apps with Tembo.

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

[](#installation)

You can install the package via composer:

```
composer require omakei/tembo
```

You can publish the config file with:

```
php artisan vendor:publish --tag="tembo-config"
```

This is the contents of the published config file:

```
return [
    /*
    |--------------------------------------------------------------------------
    | Tembo Account ID for (Banking & Wallets, Collect Money, Make Payment) API's
    |--------------------------------------------------------------------------
    |
    | This value is the account ID of your application as provided by Tembo.
    |
    */
    'accountId' => env('TEMBO_ACCOUNT_ID', 'Tembo'),

    /*
    |--------------------------------------------------------------------------
    | Tembo Secret Key for (Banking & Wallets, Collect Money, Make Payment) API's
    |--------------------------------------------------------------------------
    |
    | This value is the secret key of your application as provided by Tembo.
    |
    */
    'secretKey' => env('TEMBO_SECRET_KEY', 'Tembo'),

    /*
    |--------------------------------------------------------------------------
    | Tembo Token for (Merchant Virtual Accounts, eKYC Services, Remittance Services) API's
    |--------------------------------------------------------------------------
    |
    | This value is the Bearer token of your application as provided by Tembo.
    |
    */
    'token' => env('TEMBO_TOKEN', 'Bearer Tembo Token'),

    /*
    |--------------------------------------------------------------------------
    | Tembo Environment
    |--------------------------------------------------------------------------
    |
    | This value is the environment of your application as registered on Tembo.
    |
    */
    'environment' => env('TEMBO_ENVIRONMENT', 'sandbox'),
];
```

Usage
-----

[](#usage)

Merchant Virtual Accounts
-------------------------

[](#merchant-virtual-accounts)

### Create Merchant Virtual Account

[](#create-merchant-virtual-account)

```
use Omakei\Tembo\Tembo;

$tembo = new Tembo;

    $response = $tembo->createMerchantVirtualAccount([
        'companyName' => 'TEMBOPLUS COMPANY LIMITED',
        'reference' => 'VT87038HZS',
    ]);

```

Create Merchant Virtual Account using Facade Class

```
use Omakei\Tembo\Facades\Tembo;

    $response = Tembo::createMerchantVirtualAccount([
        'companyName' => 'TEMBOPLUS COMPANY LIMITED',
        'reference' => 'VT87038HZS',
    ]);
```

### Callback

[](#callback)

When the package the callbacks from tembo it will dispatch Event depending on the callback called. You can create a listener and do further process with the callback data which will be pass when the event get dispatch.

On you `App\Providers\EventServiceProvider` register a listeners for the following events.

```
use Omakei\Tembo\Events\RemittanceCallback;
use Omakei\Tembo\Events\TemboCallback;
use Omakei\Tembo\Events\UtilityPaymentsCallback;
use Omakei\Tembo\Events\WalletToMobileCallback;
use App\Listeners\YourEventListener;

/**
 * The event listener mappings for the application.
 *
 * @var array
 */
protected $listen = [
    RemittanceCallback::class => [
        YourEventListener::class,
    ],
     TemboCallback::class => [
        YourEventListener::class,
    ],
     UtilityPaymentsCallback::class => [
        YourEventListener::class,
    ],
     WalletToMobileCallback::class => [
        YourEventListener::class,
    ],
];
```

### Tembo documentation

[](#tembo-documentation)

You can find more details about tembo on their documentation in this link [Tembo Documentation](https://tembo.gitbook.io/tembo).

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Michael Omakei](https://github.com/omakei)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance68

Regular maintenance activity

Popularity0

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 62.5% 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

Unknown

Total

1

Last Release

401d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ee68680c808759d6c194f584ed624a7d2cea359d0b96f02c2182db0aa06ea16?d=identicon)[omakei](/maintainers/omakei)

---

Top Contributors

[![omakei](https://avatars.githubusercontent.com/u/48096457?v=4)](https://github.com/omakei "omakei (10 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (3 commits)")

---

Tags

laravelOmakeitembo

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/omakei-tembo/health.svg)

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

###  Alternatives

[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k11.2M100](/packages/dedoc-scramble)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.3k3](/packages/defstudio-telegraph)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)[lettermint/lettermint-laravel

Official Lettermint driver for Laravel

1190.2k1](/packages/lettermint-lettermint-laravel)

PHPackages © 2026

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