PHP code example of deemru / fetcher

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

    

deemru / fetcher example snippets


$nodes =
[
    'https://example.com',
    'https://testnode1.wavesnodes.com',
    'https://testnode2.wavesnodes.com',
    'https://testnode3.wavesnodes.com',
    'https://testnode4.wavesnodes.com',
];

echo Fetcher::hosts( $nodes )->fetch( '/blocks/height' );