PHP code example of ghanem / reloadly

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

    

ghanem / reloadly example snippets



....

use Ghanem\Reloadly\Facades\Reloadly;

class PostController extends Controller
{
    public function makeReport()
    {
        $countries =  Reloadly::countries();
    }

Reloadly::countries();

Reloadly::countryByIsoCode('eg');

Reloadly::operators();
// filter by country Iso Code
Reloadly::operators('eg');

Reloadly::operatorById(1);

Reloadly::autoDetectOperator('eg', '+201013001322');

Reloadly::balances();

Reloadly::createTransaction("120", "15", ['countryCode' => 'EG', 'number' => '1013001322']);

Reloadly::transactions();

Reloadly::transactionById(20818);
bash
php artisan vendor:publish --provider="Ghanem\Reloadly\ReloadlyServiceProvider" --tag="config"