PHP code example of iamkarsoft / kudi
1. Go to this page and download the library: Download iamkarsoft/kudi 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/ */
iamkarsoft / kudi example snippets
Kudi::convertFrom('USD',20);
// assigning result to a variable
$converted= Kudi::convertFrom('USD',20);
Kudi::convertTo('EUR',10000);
// assigning result to a variable
$converted = Kudi::convertTo('EUR',10000);
// to get the value
{{$converted['value']}}
// to get the currency
{{$converted['currency']}}
// to get the provider you're using
{{$converted['provider']}}