Nepali currency converter is a php package that gives the historical, latest currency rate and converts nepali currency to another.i.e
$inr = NepalCurrencyConverter::convert(1)->toINR();
echo $inr; // 0.62
You can install the package via composer:
composer require dineshuprety/nepal-currency-converter
namespace Nepo\NepalCurrencyConverter\Tests;
use Nepo\NepalCurrencyConverter\NepalCurrencyConverter;
$inr = NepalCurrencyConverter::convert(1)->toINR();
echo $inr; // 0.62
To change the Nepali currency to other currency options :
- toINR();
- toBDT();
- toCNY();
- toPKR();
- toMVR();
- toLKR();
- toAFN();
composer test
The V2 has a big change because we are feaching data from the API to make the conversion rate dynamic.
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.