PHP code example of charlesassets / laravel-perfectmoney

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

    

charlesassets / laravel-perfectmoney example snippets

 php
charlesassets\LaravelPerfectMoney\LaravelPerfectMoneyServiceProvider::class,
 php
'PerfectMoney' => charlesassets\LaravelPerfectMoney\PerfectMoney::class,

php artisan vendor:publish --provider="charlesassets\LaravelPerfectMoney\LaravelPerfectMoneyServiceProvider" --tag="config"

php artisan vendor:publish --provider="charlesassets\LaravelPerfectMoney\LaravelPerfectMoneyServiceProvider" --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'];
}