PHPackages                             kilala/momo - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. kilala/momo

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kilala/momo
===========

this is demo package first for laravel

05PHP

Since Mar 29Pushed 4y ago1 watchersCompare

[ Source](https://github.com/doanvutoan/package-momo)[ Packagist](https://packagist.org/packages/kilala/momo)[ RSS](/packages/kilala-momo/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

 [ ![](https://avatars0.githubusercontent.com/u/958072) ](https://github.com/laravel)

Laravel Omnipay
===============

[](#laravel-omnipay)

Cài đặt
-------

[](#cài-đặt)

Cài đặt Laravel Omnipay thông qua [Composer](https://getcomposer.org):

```
composer require kilala/momo
```

Cấu hình biến môi trường trong file .env

```
MOMO_API=https://test-payment.momo.vn
MOMO_PARTNER=MOMOBKUN20180529
MOMO_ACCESS_KEY=klm05TvNBzhg7h7j
MOMO_SECRET_KEY=at67qH6mk8w5Y1nAyMoYKMWACiEi2bsa
```

Đăng ký Service Provider trong file config/app.php

```
'providers' => [
    ...,
    \Kilala\Momo\OmnipayServiceProvider::class,
],
'aliases' => [
    ...,
    'Momo'   =>  \Kilala\Momo\Facades\MomoFacade::class
]
```

Chạy ứng dụng
-------------

[](#chạy-ứng-dụng)

```
Route::get('/test-package-momo',function (){
    Momo::helloWorld();
});
```

Các bước thanh toán bằng Momo
-----------------------------

[](#các-bước-thanh-toán-bằng-momo)

```
/*Chuyển hướng thanh toán bằng ứng dụng momo*/
Momo::checkoutMomo([
    'redirectUrl'   => 'https://www.example.com/result',
    'ipnUrl'        => 'https://www.example.com/ipn',
    'orderInfo'     => 'đây là đơn hàng',
    'amount'        => '1000',
    'orderId'       => 'mahoadon001',
    'requestId'     => '55555555555555555',//(string)Str::orderedUuid()
    'extraData'     => 'thongtinthemvao',//base64_encode("{'a':'text','b':'text2',....}")
    'requestType'   => 'linkWallet',//"captureWallet | payWithATM | payWithMethod | linkWallet"
    'partnerClientId'=> 'abc@gmail.com',
]);
/*Kiểm tra kết quả trả về từ momo*/
Momo::resultMomo([
    'requestId' => '666666666666666666',//(string)Str::orderedUuid()
    'orderId'   => 'mahoadon001',
]);
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/23160635?v=4)[Đoàn Vũ Toàn](/maintainers/doanvutoan)[@doanvutoan](https://github.com/doanvutoan)

---

Top Contributors

[![toandoankilala](https://avatars.githubusercontent.com/u/101075604?v=4)](https://github.com/toandoankilala "toandoankilala (6 commits)")

### Embed Badge

![Health badge](/badges/kilala-momo/health.svg)

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

###  Alternatives

[egeloen/ckeditor-bundle

Provides a CKEditor integration for your Symfony2 Project.

3375.1M45](/packages/egeloen-ckeditor-bundle)[marvinosswald/filament-input-select-affix

this input enables you to render a select next to an input in a seamless fashion

26136.1k1](/packages/marvinosswald-filament-input-select-affix)

PHPackages © 2026

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