Skip to content

Nepali currency converter is a php package that gives the historical, latest currency rate and converts nepali currency to another

License

Notifications You must be signed in to change notification settings

dineshuprety/nepal-currency-converter

Repository files navigation

Nepali Currency Converter

Latest Version on Packagist Tests Total Downloads

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

Installation

You can install the package via composer:

composer require dineshuprety/nepal-currency-converter

Usage

namespace Nepo\NepalCurrencyConverter\Tests;
use Nepo\NepalCurrencyConverter\NepalCurrencyConverter;

 $inr = NepalCurrencyConverter::convert(1)->toINR();
 echo $inr; // 0.62

Currency Convert Option

To change the Nepali currency to other currency options :

  • toINR();
  • toBDT();
  • toCNY();
  • toPKR();
  • toMVR();
  • toLKR();
  • toAFN();

Testing

composer test

V2 Comming Soon

The V2 has a big change because we are feaching data from the API to make the conversion rate dynamic.

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

Nepali currency converter is a php package that gives the historical, latest currency rate and converts nepali currency to another

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages