nexuslinkservices / country-currency-converter
v1.0.0
2016-10-07 13:34 UTC
Requires
- php: >=5.6.2
Requires (Dev)
- phpunit/phpunit: 5.5.*
This package is not auto-updated.
Last update: 2024-11-09 20:50:47 UTC
README
Convert country currency by currency code.
Installation
If you use composer, you can add this package by running
composer require galiteintechnologies/country-currency-converter
Usage
<?php
use CountryCurrencyConverter\CurrencyConverter;
$currencyConverter = new CurrencyConverter();
$result = $currencyConverter->convertCurrency('USD', 'INR', 1);
echo $result.'<br/>';
$result = $currencyConverter->convertCurrency('USD', 'INR', 1, false);
echo $result.'<br/>';
$result = $currencyConverter->convertCurrency('USD', 'INR', 1, false, false);
echo $result;
Output
66.59 ₹ //With round value and currency symbol
66.5922 ₹ //without round value
66.5922 // without round value and currency symbol
CONTRIBUTING:
Pull requests are always welcome.