PHP code example of lubusin / laravel-mojo

1. Go to this page and download the library: Download lubusin/laravel-mojo library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

lubusin / laravel-mojo example snippets


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

return redirect($instamojoFormUrl);

$details = Mojo::giveMePaymentDetails();

$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

// config/app.php
'providers' => [
    ...
    Lubusin\Mojo\MojoServiceProvider::class,
];
bash
php artisan migrate
bash
php artisan vendor:publish --provider="Lubusin\Mojo\MojoServiceProvider"