PHP code example of ambersive / ardor

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

    

ambersive / ardor example snippets


Config::set('ardor.node', 'https://testardor.jelurida.com/');
Config::set('ardor.wallet', 'ARDOR-DAZJ-VVSM-552M-8K459');
Config::set('ardor.secret', 'orange welcome begun powerful lonely government cast figure add quit wife loser');


use \AMBERSIVE\Ardor\Classes\ArdorAccountsHandler;
use \AMBERSIVE\Ardor\Models\ArdorAccount;

public function returnAcccountData():ArdorAccount {

    $ardor = new ArdorAccountsHandler();
    $account = $ardor->getAccount('ARDOR-DAZJ-VVSM-552M-8K459');

}
bash
php artisan vendor:publish --tag=ardor