dineshuprety / nepal-currency-converter
Nepali Currency Converter
Fund package maintenance!
dineshuprety
Requires
- php: ^8.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- pestphp/pest: ^1.20
- spatie/ray: ^1.28
This package is auto-updated.
Last update: 2024-04-24 19:33:07 UTC
README
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.