PHPackages                             khidirdotid/flashmobile-laravel - 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. khidirdotid/flashmobile-laravel

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

khidirdotid/flashmobile-laravel
===============================

A Flash Mobile Wrapper for Laravel

v1.0.2(1y ago)011MITPHPPHP ^8.1

Since Dec 10Pushed 1y ago1 watchersCompare

[ Source](https://github.com/KhidirDotID/flashmobile-laravel)[ Packagist](https://packagist.org/packages/khidirdotid/flashmobile-laravel)[ Fund](https://saweria.co/khidirdotid)[ RSS](/packages/khidirdotid-flashmobile-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (4)Used By (0)

flashmobile-laravel
===================

[](#flashmobile-laravel)

A Flash Mobile Wrapper for Laravel

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

[](#installation)

1. Install the package

    ```
    composer require khidirdotid/flashmobile-laravel
    ```
2. Publish the config file

    ```
    php artisan vendor:publish --provider="KhidirDotID\FlashMobile\Providers\FlashMobileServiceProvider"
    ```
3. Add the Facade to your `config/app.php` into `aliases` section

    ```
    'FlashMobile' => KhidirDotID\FlashMobile\Facades\FlashMobile::class,
    ```
4. Add ENV data

    ```
    FLASH_CLIENT_ID=
    FLASH_SECRET_KEY=
    FLASH_ENVIRONMENT=sandbox
    ```

    or you can set it through the controller

    ```
    \FlashMobile::setClientId('FLASH_CLIENT_ID');
    \FlashMobile::setSecretKey('FLASH_SECRET_KEY');
    \FlashMobile::setProduction(false);
    ```

Usage
-----

[](#usage)

### Create QR Payment

[](#create-qr-payment)

1. Get Payment QR String ```
    $data = [
        'terminal_id' => 'INV-' . time(),
        'external_id' => 'INV-' . time(),
        'amount' => 10000,
        'session_time' => 1, // in minutes
        'fullname' => '',
        'email' => '',
        'phone_number' => ''
    ];

    try {
        // Get QR String
        $payment = \FlashMobile::createQRPayment($data);

        // Combine with QR Generator Package. e.g: simplesoftwareio/simple-qrcode
        $qrCode = \SimpleSoftwareIO\QrCode\Facades\QrCode::generate($payment['qr_string']);
        echo '';
    } catch (\Throwable $th) {
        throw $th;
    }
    ```

### Handle HTTP Notification

[](#handle-http-notification)

1. Create route to handle notifications ```
    Route::match(['GET', 'POST'], 'flash.ipn', [PaymentController::class, 'flashIpn'])->name('flash.ipn');
    ```
2. Create method in controller ```
    public function paymentIpn(Request $request)
    {
        try {
            $response = \FlashMobile::getPaymentStatus($request->transaction_id);

            if (strtolower($response['status']) == 'success') {
                // TODO: Set payment status in merchant's database to 'success'
            }
        } catch (\Throwable $th) {
            throw $th;
        }
    }
    ```
3. Except verify CSRF token in `app/Http/Middleware/VerifyCsrfToken.php````
    protected $except = [
        'flash/ipn'
    ];
    ```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance46

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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.

###  Release Activity

Cadence

Every ~49 days

Total

3

Last Release

421d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/332031ed442543b22293ac4464e66048b723bcc6856ae58940d295bbf57476d4?d=identicon)[KhidirDotID](/maintainers/KhidirDotID)

---

Top Contributors

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

---

Tags

laravelflashmobile

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/khidirdotid-flashmobile-laravel/health.svg)

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[nedwors/navigator

A Laravel package to ease defining navigation menus

433.1k](/packages/nedwors-navigator)[xefi/faker-php-laravel

Faker php integration with laravel

1915.1k](/packages/xefi-faker-php-laravel)[dcblogdev/laravel-junie

Install pre-configured guides for Jetbrains Junie

392.5k](/packages/dcblogdev-laravel-junie)

PHPackages © 2026

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