1. Go to this page and download the library: Download burtds/cash-converter 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/ */
burtds / cash-converter example snippets
use Burtds\CashConverter\Facades\CashConverter;
CashConverter::getRates('EUR'); // returns an array of the currenct conversion rates based on the given currency, in this case Euro
CashConverter::getRate('EUR','USD'); // returns the current conversion rate for Euro to US Dollars
CashConverter::convert('EUR','USD', 25); // returns the converted vanlue in US Dollars for the given 25 Euro