PHP code example of ishidad2 / symbol-node-selector

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

    

ishidad2 / symbol-node-selector example snippets


return [
    'testnet_symbol_nodes' => [
        'https://sym-test-01.opening-line.jp:3001',
        'https://sym-test-03.opening-line.jp:3001',
        'https://001-sai-dual.symboltest.net:3001',
    ],
    'mainnet_symbol_nodes' => [
        'https://yukikaze.symbol-nem.net:3001',
        'https://symbol-main-1.nemtus.com:3001',
        'https://xym1.kyoto-japan.cloud:3001',
    ],
];

use Ishidad2\SymbolNodeSelector\SymbolNodeSelector;

$selector = new SymbolNodeSelector();

echo "Mainnet Node: " . $selector->getActiveMainnetNode();
echo "Testnet Node: " . $selector->getActiveTestnetNode();
sh
php artisan vendor:publish --tag=config