PHP code example of bencoderus / bureau-de-change

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

    

bencoderus / bureau-de-change example snippets


use Bencoderus\BureauDeChange\Converter;
$convert = new Converter();
return $convert->currency('BTC', 'USD')->convert(1);

use Bencoderus\BureauDeChange\Converter;

return (new Converter())->currency('GBP', 'USD')->convert(100);