PHP code example of adisaf / laravel-perfectmoney

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

    

adisaf / laravel-perfectmoney example snippets


php artisan vendor:publish --provider="Adisaf\LaravelPerfectMoney\ServiceProvider" --tag="config"

php artisan vendor:publish --provider="Adisaf\LaravelPerfectMoney\ServiceProvider" --tag="views"
 php
PerfectMoney::render();
 php
PerfectMoney::render(['PAYMENT_UNITS' => 'EUR'], 'custom_view');
 php
$pm = new PerfectMoney;
$balance = $pm->getBalance();

if($balance['status'] == 'success')
{
	return $balance['USD'];
}