dineshuprety/nepal-currency-converter

Nepali Currency Converter

v1.0.0 2022-08-02 16:16 UTC

This package is auto-updated.

Last update: 2024-04-24 19:33:07 UTC


README

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.