PHP code example of munna / pm

1. Go to this page and download the library: Download munna/pm 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/ */

    

munna / pm example snippets




return [

    /**
     * Perfect Money Login Account ID
     *
     */
    'perfect_money_account' => '12345678',

    /**
     * Perfect Money Loggin Password 
     *
     */
    'perfect_money_password' => 'YOUR_PASSWORD',

    /**
     * Perfect Money Payer Account ID [Like U123456]
     *
     */
    'perfect_money_payeraccount' => 'Your_Account_id',

];


/**
 *  Create an instance of PerfectMoney
 */

$pm = new PerfectMoney;

/**
 *  Check Your Account
 */
$pm->getName();


/**
 *  Check Your Balance
 *  Normally you can see all your balances
 */
$pm->balance();


/**
 *  To check specify current balance you need to pass an one optional parameter
 *  Support ["USD", "EURO", "Troy oz."] etc
 */
$pm->balance("USD");


/**
 *  Sent or Transfer Amount To Others Account
 *  All send parameter are 
bash
php artisan vendor:publish --provider="Munna\Pm\PerfectMoneyServiceProvider"
bash
php artisan config:clear