PHPackages                             santran/mobicard - 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. santran/mobicard

ActiveLibrary

santran/mobicard
================

Tích hợp thanh toán thẻ cào qua Ngân Lượng cho website Laravel 5.2 tở lên.

181PHP

Since Apr 21Pushed 8y agoCompare

[ Source](https://github.com/mrsantran/mobicard)[ Packagist](https://packagist.org/packages/santran/mobicard)[ RSS](/packages/santran-mobicard/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel 5 MobiCard
==================

[](#laravel-5-mobicard)

Tích hợp thanh toán thẻ cào qua Ngân Lượng cho website Laravel 5.2 tở lên.
==========================================================================

[](#tích-hợp-thanh-toán-thẻ-cào-qua-ngân-lượng-cho-website-laravel-52-tở-lên)

[![Total Downloads](https://camo.githubusercontent.com/e05e1d6b01e4cb2c23394570c5398e7c85dad409adc8a5c9689be3627a6c0f1a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73616e7472616e2f6d6f6269636172642e737667)](https://packagist.org/packages/santran/mobicard)[![Paypal Donate](https://camo.githubusercontent.com/7b6de155df30b37b25eb5fec52f9213680c3dbf067dfb7d7e2850ac4096c7d05/68747470733a2f2f7777772e70617970616c6f626a656374732e636f6d2f656e5f55532f692f62746e2f62746e5f646f6e6174655f534d2e676966)](http://paypal.me/MrSanTran)

---

**Install with composer**.

Install (Laravel)
-----------------

[](#install-laravel)

Install via composer

```
composer require santran/mobicard:dev-master

```

Add Service Provider to `config/app.php` in `providers` section

```
SanTran\MobiCard\MobiCardServiceProvider::class,
```

Add Facade to `config/app.php` in `aliases` section:

```
'MobiCard' => SanTran\MobiCard\MobiCardFacade::class,
```

Publish config file, open console and enter bellow command:

```
php artisan vendor:publish
```

Config file 'mobicard.php' will be copy to config/smartlogs.php, you can change any config on that file for MobiCard 'MERCHANT\_ID' =&gt; "36680", 'MERCHANT\_PASSWORD' =&gt; "matkhauketnoi", 'EMAIL\_RECEIVE\_MONEY' =&gt; ""

How to use ? Open your Controller. Add this line on above file, remember after 'namespace ...' keywork:

```
use MobiCard;
```

on function

```
$serial = $request->get('serial', "");
$pin = $request->get('pin', "");
$type = $request->get('select_method', "");

$arytype = array(92 => 'VMS', 93 => 'VNP', 107 => 'VIETTEL', 120 => 'GATE');
//Tiến hành kết nối thanh toán Thẻ cào.
$coin1 = rand(10, 999);
$coin2 = rand(0, 999);
$coin3 = rand(0, 999);
$coin4 = rand(0, 999);
$ref_code = $coin4 + $coin3 * 1000 + $coin2 * 1000000 + $coin1 * 100000000;

$rs = MobiCard::CardPay($pin, $serial, $type, $ref_code, "", "", "");

if ($rs->error_code == '00') {
    // Cập nhật data tại đây
    echo 'alert("Bạn đã nạp thành công ' . $rs->card_amount . ' vào trong tài khoản.");'; //$total_results;
} else {
    echo 'alert("Lỗi :' . $rs->error_message . '");';
}
```

on your views.

```

        Số Seri :

        Mã số thẻ :

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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://www.gravatar.com/avatar/05fcc8d2c99d7c53346781ea21d01e043ed1cd1597675f83e2be8bb3fa868836?d=identicon)[santran](/maintainers/santran)

---

Top Contributors

[![mrsantran](https://avatars.githubusercontent.com/u/21286108?v=4)](https://github.com/mrsantran "mrsantran (10 commits)")

### Embed Badge

![Health badge](/badges/santran-mobicard/health.svg)

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

PHPackages © 2026

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