PHPackages                             lubusin/laravel-mojo - 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. lubusin/laravel-mojo

ActiveLibrary[Payment Processing](/categories/payments)

lubusin/laravel-mojo
====================

Laravel Mojo provides an expressive, fluent interface to Instamojo's payment and refund services.

v2.0.4(8y ago)152.4k4[7 issues](https://github.com/lubusIN/laravel-mojo/issues)MITPHPPHP ^7.0

Since Nov 19Pushed 10mo ago2 watchersCompare

[ Source](https://github.com/lubusIN/laravel-mojo)[ Packagist](https://packagist.org/packages/lubusin/laravel-mojo)[ RSS](/packages/lubusin-laravel-mojo/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (7)Dependencies (4)Versions (10)Used By (0)

[![](https://cloud.githubusercontent.com/assets/11228182/22874613/07031906-f1ed-11e6-8951-d96b9d9274c6.png)](https://cloud.githubusercontent.com/assets/11228182/22874613/07031906-f1ed-11e6-8951-d96b9d9274c6.png)

[![Latest Stable Version](https://camo.githubusercontent.com/ee79edc80867da61f41f397eb78845f8e3570cba8ec295b964ebe2b92181940f/68747470733a2f2f706f7365722e707567782e6f72672f6c75627573696e2f6c61726176656c2d6d6f6a6f2f762f737461626c65)](https://packagist.org/packages/lubusin/laravel-mojo)[![Build Status](https://camo.githubusercontent.com/b1ea86fc5431893295979b90ee8cc24f5da96c3a0c5e00df210b1b69b3130fa6/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c75627573494e2f6c61726176656c2d6d6f6a6f2f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/lubusIN/laravel-mojo/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/d13fb4add1aacbf09d189509508f5d384f57d6a0648d6d9ace2b81a0398168f3/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c75627573494e2f6c61726176656c2d6d6f6a6f2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/lubusIN/laravel-mojo/?branch=master)[![SensioLabs Insight](https://camo.githubusercontent.com/69ac25cd33a36a79b6ef23fe27a921480bc4d57dded2c297e14c7d2b92ce1cf8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436865636b2d506c6174696e756d2d627269676874677265656e2e737667)](https://insight.sensiolabs.com/projects/b60d453c-a67c-4079-b775-febe65ee02bc)[![Total Downloads](https://camo.githubusercontent.com/ef0f359997b1cd4722b6dfb2f3e613e50b911df9c20ee8d7562193db3b35bb55/68747470733a2f2f706f7365722e707567782e6f72672f6c75627573696e2f6c61726176656c2d6d6f6a6f2f646f776e6c6f616473)](https://packagist.org/packages/lubusin/laravel-mojo)[![License](https://camo.githubusercontent.com/7238a2d11905d598b819fc5847b630704c9e71543774e586f771e9df59e16a2f/68747470733a2f2f706f7365722e707567782e6f72672f6c75627573696e2f6c61726176656c2d6d6f6a6f2f6c6963656e7365)](https://packagist.org/packages/lubusin/laravel-mojo)

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

[](#introduction)

Laravel Mojo provides an expressive, fluent interface to [Instamojo's](https://instamojo.com) online payments and refund services. It handles almost all of the boilerplate payment code you are dreading writing and are unable to watch next episode of Narcos because of the same. In addition to the basic payments and refunds management, Mojo stores all the tansactions &amp; refunds details with him and gives them to you as you ask (No you don't even need to shout Ok google for that).

Here are a few short examples of what you can do:

```
$instamojoFormUrl = Mojo::giveMeFormUrl($user,$amount,$purpose);

return redirect($instamojoFormUrl);
```

That's it for making the payment, also it gets you the payment details after the payment with the same breeze:

```
$details = Mojo::giveMePaymentDetails();
```

My 3 most favourites out of all the helpers

```
$income = Mojo::myAndMojosIncome(); // Total amount including Instamojo's fees

$income = Mojo::myIncome(); // Total amount excluding Instamojo's fees

$income = Mojo::mojosIncome(); // Instamojo's total fees
```

Much more in the [documentation](https://github.com/lubusIN/laravel-mojo/wiki)

Documentation
-------------

[](#documentation)

You'll find the entire documentation &amp; the spoiler for Narcos season 3 in the [WIKI](https://github.com/lubusIN/laravel-mojo/wiki). Since thats why the wiki is made for! But, no one cares sigh...

Stuck somewhere using the laravel mojo, any feature requests, or a TV series recommendation? Feel free to [create an issue on gitHub](https://github.com/lubusIN/laravel-mojo/issues), I'll try to address it as soon as possible.

Prerequisites
-------------

[](#prerequisites)

- If you are upgrading from v1 to v2 please checkout the [changelog](https://github.com/lubusIN/laravel-mojo/blob/master/changelog.md)
- PHP &gt;=7.0
- CURL extension should be enabled

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

[](#installation)

> **Enable the CURL extension in order to use this package**

You can install this package via composer using this command:

```
composer require lubusin/laravel-mojo
```

Next, you must add the service provider:

```
// config/app.php
'providers' => [
    ...
    Lubusin\Mojo\MojoServiceProvider::class,
];
```

You can run the migrations for both transactions and refunds details after registering the service provider with:

```
php artisan migrate
```

You can publish the config-file "laravelmojo.php" with:

```
php artisan vendor:publish --provider="Lubusin\Mojo\MojoServiceProvider"
```

A file "laravelmojo.php" would be published in the config directory. Make sure to fill in the correct config values in your .env file before proceeding.

> **After successful installation, continue with the documentation [here](https://github.com/lubusIN/laravel-mojo/wiki/1.-Prerequisites)**

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

[](#contributing)

Thank you for considering contributing to the Laravel Mojo. You can read the contribution guide lines [here](contributing.md)

Security
--------

[](#security)

If you discover any security related issues, please email to  instead of using the issue tracker.

Meet Your Artisans
------------------

[](#meet-your-artisans)

[LUBUS](http://lubus.in) is a web design agency based in Mumbai, India.

[![](https://raw.githubusercontent.com/lubusIN/.github/refs/heads/main/profile/banner.png)](https://cal.com/lubus)Credits
-------

[](#credits)

[ ![](https://camo.githubusercontent.com/3d0895fddf30ad2ee6710048dd84c5366a21a8346a4f2493fc93f90ca30f80df/68747470733a2f2f636f6e747269622e726f636b732f696d6167653f7265706f3d6c75627573494e2f6c61726176656c2d6d6f6a6f)](https://github.com/lubusIN/visual-blueprint-builder/graphs/contributors)License
-------

[](#license)

Laravel Mojo is open-sourced software licensed under the [MIT license](LICENSE.txt)

Changelog
---------

[](#changelog)

Please see the [Changelog](https://github.com/lubusIN/laravel-mojo/blob/master/changelog.md) for the details

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 91.7% 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 ~56 days

Recently: every ~91 days

Total

9

Last Release

3010d ago

Major Versions

v1.6 → v2.02017-02-13

### Community

Maintainers

![](https://www.gravatar.com/avatar/1a1501b9c7151803b2ecc58be89cec4f7e8adaf1753831dc3fb6b8631c9e4e6d?d=identicon)[introwit](/maintainers/introwit)

![](https://www.gravatar.com/avatar/262dac789595d74fa69a10397f37c6125f027bba0587adaee7d1dc206480507c?d=identicon)[ajitbohra](/maintainers/ajitbohra)

---

Top Contributors

[![introwit](https://avatars.githubusercontent.com/u/11228182?v=4)](https://github.com/introwit "introwit (33 commits)")[![ajitbohra](https://avatars.githubusercontent.com/u/1039236?v=4)](https://github.com/ajitbohra "ajitbohra (2 commits)")[![psnilesh](https://avatars.githubusercontent.com/u/12656997?v=4)](https://github.com/psnilesh "psnilesh (1 commits)")

---

Tags

instamojolaravellaravel-mojolaravel-packagepackagelaravelpackageinstamojo

### Embed Badge

![Health badge](/badges/lubusin-laravel-mojo/health.svg)

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

###  Alternatives

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k43.5M5.2k](/packages/larastan-larastan)[yansongda/laravel-pay

专注 Alipay/WeChat/Unipay 的 laravel 支付扩展包

1.1k353.2k9](/packages/yansongda-laravel-pay)[asciisd/knet

Knet package is provides an expressive, fluent interface to KNet's payment services.

141.1k](/packages/asciisd-knet)[threesquared/laravel-paymill

Laravel wrapper for the Paymill API

121.3k](/packages/threesquared-laravel-paymill)

PHPackages © 2026

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